Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default How to backup data?

    We have a client hosting a web site with Verio. It uses an SQL
    database.

    I can't FTP into the server to download the database, which means I have
    to connect to the server and pull all of the records down to do a
    backup.

    How do I do that? Can someone point me to a source for this procedure?

    Thanks!

    --Dave
    Dave Navarro Guest

  2. Similar Questions and Discussions

    1. Linking data, searching data, and format the data file
      I'm sorta new to flash and integrating data and components...I'm usu. an interface designer. I'm trying to link a combo box to a file doesn't...
    2. backup data sources
      Is it possible to backup data sources from one server to another? I need to move data sources from Coldfusion MX to Coldfusion MX 7 server. Thanks...
    3. USB backup from APC?
      Hey all, Just curious if APC's battery backups over USB work in FreeBSD, and how I would go about setting one up... I've never done it before so...
    4. Data Backup startup problem
      When DataBackup Classic runs, it purges the System Startup Folder contents. Not only does it's own icon disappear, but Stickies and any other...
    5. loop - begin backup, end backup Oracle 8.1.7
      Hello, we have the problem named after: last weekend (22.12.2002), we did a reorganisation of a tablespace with the tool "sapdba" from SAP....
  3. #2

    Default Re: How to backup data?

    You could connect via enterprise manager (if verio gives you access) and
    backup the database either locally (at the server) or transfer the data to
    your local machine. In either case, you need the IP of your SQL server, and
    the host should have enabled it on the Net.

    Or, look into SQL server books online for SQL commands that let you backup
    the database, but you will need the proper permissions.

    In all cases, you will need an ok from the host.

    --
    Manohar Kamath
    Editor, .netBooks
    [url]www.dotnetbooks.com[/url]


    "Dave Navarro" <dave@dave.dave> wrote in message
    news:MPG.1a8d681dddfed936989774@news-40.giganews.com...
    > We have a client hosting a web site with Verio. It uses an SQL
    > database.
    >
    > I can't FTP into the server to download the database, which means I have
    > to connect to the server and pull all of the records down to do a
    > backup.
    >
    > How do I do that? Can someone point me to a source for this procedure?
    >
    > Thanks!
    >
    > --Dave

    Manohar Kamath [MVP] Guest

  4. #3

    Default Re: How to backup data?

    On Fri, 6 Feb 2004 09:00:52 -0500, Dave Navarro <dave@dave.dave>
    wrote:
    >We have a client hosting a web site with Verio. It uses an SQL
    >database.
    >
    >I can't FTP into the server to download the database, which means I have
    >to connect to the server and pull all of the records down to do a
    >backup.
    >
    >How do I do that? Can someone point me to a source for this procedure?
    Messy. The problem isn't getting the records, it's the database
    structure. If you can run a stored procedure you could back up the
    database and download that file.

    Jeff
    Jeff Cochran Guest

  5. #4

    Default Re: How to backup data?

    In article <OwvxlRN7DHA.2412@TK2MSFTNGP09.phx.gbl>,
    [email]mkamath@TAKETHISOUTkamath.com[/email] says...
    > You could connect via enterprise manager (if verio gives you access) and
    > backup the database either locally (at the server) or transfer the data to
    > your local machine. In either case, you need the IP of your SQL server, and
    > the host should have enabled it on the Net.
    Verio has provided access to their server via Enterprise Manager. And I
    have SQL 2000 installed on my own personal server.

    So I can connect to Verio's server from Enterprise Manager and instruct
    it to send the data to my own server?

    --Dave
    Dave Navarro Guest

  6. #5

    Default Re: How to backup data?

    Dave here is a script im using, it will backup and email db to you if
    required.

    '****************************


    '************************************************* ***********************
    'VBSCRIPT to backup database's and email results
    '1 Novenber 2003 Don Grover
    '************************************************* ***********************
    OPTION EXPLICIT

    Dim myMailServer, myRmailPort, sEmailAddFrom, sEmailAddToo, sConEmailMonitor
    Dim conn

    myMailServer = "myservername"
    myRmailPort = 25
    sEmailAddFrom = "support@@@@assoft.com.au"
    sEmailAddToo = "Don Grover <dgrover@@@@assoft.com.au>"
    sConEmailMonitor = ""



    'Open connection to SQL Server
    Set Conn = CreateObject("ADODB.Connection")
    Conn.Open _
    "Provider=SQLOLEDB" & _
    ";Data Source=assoftsvr" & _
    ";Integrated Security=SSPI"

    'Call the backup routine for each db
    'DoBackup "GTS"
    'DoBackup "CokeShop"
    'DoBackup "BGINFO"

    Conn.Close
    Set Conn = Nothing

    'Wscript.Echo "Backup complete"
    WScript.Quit



    Sub DoBackup(sDbName)
    'Sub accepts a database name and backs up to predefined location on another
    server
    On Error Resume Next
    Conn.Execute _
    "BACKUP DATABASE " & sDbName & _
    " TO DISK='\\nassvr\Backups\" & sDbName & "_db_" &
    formatdatetime(now,1) & ".bak'" & _
    " WITH INIT"

    Conn.Execute _
    "BACKUP LOG " & sDbName & _
    " TO DISK='\\nassvr\Backups\" & sDbName & "_log_" &
    formatdatetime(now,1) & ".bak'" & _
    " "
    If Err.Number = 0 Then
    SendEmail sDbName,"SUCCESS",""
    Else
    SendEmail sDbName,"BACKUP FAILED " & Err.Number & "Desc: " &
    Err.Description,""
    End If
    Err.Clear
    On Error Goto 0
    End Sub

    Sub SendEmail(sDatabaseName,sMessage,sUploadFile)

    '************************************************* *****
    '*** Send the message Using CDOSYS Win2k & Win2003 ****
    '************************************************* *****
    ' CDO mail object
    myMailServer = sEmailServer

    sch = "http://schemas.microsoft.com/cdo/configuration/"
    Set cdoConfig = CreateObject("CDO.Configuration")
    cdoConfig.Fields.Item(sch & "sendusing") = 2
    cdoConfig.Fields.Item(sch & "smtpserverport") = myRmailPort
    cdoConfig.Fields.Item(sch & "smtpserver") = myMailServer
    cdoConfig.fields.update

    Set cdoMessage = CreateObject("CDO.Message")
    Set cdoMessage.Configuration = cdoConfig
    cdoMessage.From = sEmailAddFrom
    cdoMessage.To = sEmailAddToo
    cdoMessage.BCC = sConEmailMonitor
    cdoMessage.Subject = "Backed up " & sDatabaseName & " on " &
    formatdatetime(now,1)
    cdoMessage.TextBody = "Backup " & sMessage & " of " & sDatabaseName & "
    to \\NASSvr....."
    If Trim(sUploadFile) <> "" Then
    cdoMessage.AddAttachment "file://" & sUploadFile
    End If
    '
    cdoMessage.item("http://schemas.microsoft.com/cdo/configuration/smtpauthenti
    cate").value = 1 ' use clear text authenticate
    '
    cdoMessage.item("http://schemas.microsoft.com/cdo/configuration/sendpassword
    ").value ="mypassword"
    '
    cdoMessage.item("http://schemas.microsoft.com/cdo/configuration/sendusername
    ").value ="yourusername"
    cdoMessage.Fields.Item("urn:schemas:mailheader:Key words") = ""
    cdoMessage.Fields.Item("urn:schemas:mailheader:X-Priority") = 1
    cdoMessage.Fields.Item("urn:schemas:mailheader:X-MSMail-Priority") =
    "High"
    cdoMessage.Fields.Item("urn:schemas:mailheader:X-Message-Flag") = "Do
    not Forward"
    cdoMessage.Fields.Item("urn:schemas:mailheader:Sen sitivity") =
    "Company-Confidential"
    cdoMessage.Fields.Item("urn:schemas:mailheader:Imp ortance") = "High"
    cdoMessage.Fields.Update
    cdoMessage.Send
    Set cdoMessage = Nothing
    Set cdoConfig = Nothing
    End Sub







    '****************************









    "Dave Navarro" <dave@dave.dave> wrote in message
    news:MPG.1a8d681dddfed936989774@news-40.giganews.com...
    > We have a client hosting a web site with Verio. It uses an SQL
    > database.
    >
    > I can't FTP into the server to download the database, which means I have
    > to connect to the server and pull all of the records down to do a
    > backup.
    >
    > How do I do that? Can someone point me to a source for this procedure?
    >
    > Thanks!
    >
    > --Dave

    Don Grover Guest

  7. #6

    Default Re: How to backup data?

    Yes, just create a local database, and right click on the remote database
    and do an "Import" and follow the wizard. Look up the SQL Server books
    online for more help in this regard.

    --
    Manohar Kamath
    Editor, .netBooks
    [url]www.dotnetbooks.com[/url]


    "Dave Navarro" <dave@dave.dave> wrote in message
    news:MPG.1a8edf973d8c9c52989775@news-40.giganews.com...
    > In article <OwvxlRN7DHA.2412@TK2MSFTNGP09.phx.gbl>,
    > [email]mkamath@TAKETHISOUTkamath.com[/email] says...
    > > You could connect via enterprise manager (if verio gives you access) and
    > > backup the database either locally (at the server) or transfer the data
    to
    > > your local machine. In either case, you need the IP of your SQL server,
    and
    > > the host should have enabled it on the Net.
    >
    > Verio has provided access to their server via Enterprise Manager. And I
    > have SQL 2000 installed on my own personal server.
    >
    > So I can connect to Verio's server from Enterprise Manager and instruct
    > it to send the data to my own server?
    >
    > --Dave

    Manohar Kamath [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139