Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How can I backup my sql server 2008 database on a remote server??

How can I backup my sql server 2008 database on a remote server??

Scheduled Pinned Locked Moved Database
databasequestionsql-serversysadminsecurity
22 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nada Adel

    Unfortunately the server doesn't allow ftp for security so I can't backup the database and then send it through ftp to the other server. So is there anyway I can do this from sql server 2008? Is there a way to write the url or path of the remote server in order to save the backup file? example: \\1.2.3.4\.... something like that?

    V Offline
    V Offline
    Vimalsoft Pty Ltd
    wrote on last edited by
    #2

    Backups are done Locally. That is why when you try to make a Backup, it only gives you a Local Filesystem option. So what you can do is that back them localy and move them Programatially.

    Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

    N 1 Reply Last reply
    0
    • V Vimalsoft Pty Ltd

      Backups are done Locally. That is why when you try to make a Backup, it only gives you a Local Filesystem option. So what you can do is that back them localy and move them Programatially.

      Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

      N Offline
      N Offline
      Nada Adel
      wrote on last edited by
      #3

      Thanks for the reply. Do you mean create something like a windows service to move the backuup file to another server? How can I do that if ftp is disabled on the server?

      V 1 Reply Last reply
      0
      • N Nada Adel

        Thanks for the reply. Do you mean create something like a windows service to move the backuup file to another server? How can I do that if ftp is disabled on the server?

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #4

        If you cant have Access to the FTP , you can share the Folder in the Destination Folder and Map it in the Machine that does the Backups. and move the backups Between these Folder. You can Add this as a Batch File and that Batch File gets Executed as a Job in SQL After the Backups are done. Hope this Helps

        Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        N 1 Reply Last reply
        0
        • V Vimalsoft Pty Ltd

          If you cant have Access to the FTP , you can share the Folder in the Destination Folder and Map it in the Machine that does the Backups. and move the backups Between these Folder. You can Add this as a Batch File and that Batch File gets Executed as a Job in SQL After the Backups are done. Hope this Helps

          Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

          N Offline
          N Offline
          Nada Adel
          wrote on last edited by
          #5

          I'm sorry for bothering you, but my problem is that the 2 server are on different networks. So I don't know how to share folders between them. Can you help out by explaining with an example?

          V 1 Reply Last reply
          0
          • N Nada Adel

            I'm sorry for bothering you, but my problem is that the 2 server are on different networks. So I don't know how to share folders between them. Can you help out by explaining with an example?

            V Offline
            V Offline
            Vimalsoft Pty Ltd
            wrote on last edited by
            #6

            You are not Bothering me. its my pleasure to help. Can you Ping the Other Machine, meaning can you Ping from the computer that does the backups ?

            Go to Run-->cmd

            in the Command type

            Ping <>

            and see if there is a reply and post back the results here

            Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

            modified on Tuesday, September 29, 2009 8:20 AM

            N 1 Reply Last reply
            0
            • V Vimalsoft Pty Ltd

              You are not Bothering me. its my pleasure to help. Can you Ping the Other Machine, meaning can you Ping from the computer that does the backups ?

              Go to Run-->cmd

              in the Command type

              Ping <>

              and see if there is a reply and post back the results here

              Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

              modified on Tuesday, September 29, 2009 8:20 AM

              N Offline
              N Offline
              Nada Adel
              wrote on last edited by
              #7

              I pinged the other server successfully from the server that does the backups.

              V N 2 Replies Last reply
              0
              • N Nada Adel

                I pinged the other server successfully from the server that does the backups.

                V Offline
                V Offline
                Vimalsoft Pty Ltd
                wrote on last edited by
                #8

                Good, Go to your "My Computer" --> when you are there Click on Tools-->Map Network Drive and Write the Following in the Folder Option

                \\ComputerName\ShareName\

                Remember the ShareName needs to be the name of the Share in the other Computer. So that means you need to go to the other Server and Create a Folder and Share it. The name of the Folder will be the name of the share. and Write a Small Program that will move the Files across

                Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                1 Reply Last reply
                0
                • N Nada Adel

                  I pinged the other server successfully from the server that does the backups.

                  N Offline
                  N Offline
                  Nada Adel
                  wrote on last edited by
                  #9

                  So what's next??

                  V 1 Reply Last reply
                  0
                  • N Nada Adel

                    So what's next??

                    V Offline
                    V Offline
                    Vimalsoft Pty Ltd
                    wrote on last edited by
                    #10

                    First Question. Do you automate your Backups to Happen at a Specific Time ? The Next thing you need to do is to text if you can place any File in the Share. Just Copy any File and paste it in your Share. if you have no Permission Problems then its Cool. Create a New Project create a cmd Project and Look at this Articles to Create a cmd application to Copy Files http://msdn.microsoft.com/en-us/library/cc148994.aspx[^] http://msdn.microsoft.com/en-us/library/system.io.file.copy%28VS.71%29.aspx[^] http://www.dreamincode.net/code/snippet1807.htm[^] http://www.computerhope.com/issues/ch000766.htm[^] When you are Done , Create a Batch File and Tell it Execute this File, to Create a Batch File and Run the Batch File on the time you know your Backups will be Done. I was gonna say you must use Jobs in SQL, am not Sure if you know them .

                    Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                    N 1 Reply Last reply
                    0
                    • V Vimalsoft Pty Ltd

                      First Question. Do you automate your Backups to Happen at a Specific Time ? The Next thing you need to do is to text if you can place any File in the Share. Just Copy any File and paste it in your Share. if you have no Permission Problems then its Cool. Create a New Project create a cmd Project and Look at this Articles to Create a cmd application to Copy Files http://msdn.microsoft.com/en-us/library/cc148994.aspx[^] http://msdn.microsoft.com/en-us/library/system.io.file.copy%28VS.71%29.aspx[^] http://www.dreamincode.net/code/snippet1807.htm[^] http://www.computerhope.com/issues/ch000766.htm[^] When you are Done , Create a Batch File and Tell it Execute this File, to Create a Batch File and Run the Batch File on the time you know your Backups will be Done. I was gonna say you must use Jobs in SQL, am not Sure if you know them .

                      Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                      N Offline
                      N Offline
                      Nada Adel
                      wrote on last edited by
                      #11

                      thanks a lot for your help, I'll take a look at them. Just one more question regarding sql server 2008. If I want to access a sql server 2008 database remotely from a computer that resides on a different network, should I use SQL server management studio 2008 or can I just use sql server SQL management studio 2005? I've been having a hard time connecting to the database remotely. I enabled remote connections and I added some rules to the firewall to open sql server ports but to no avail. I've done everything that could allow remote connection but failed to connect to it and when I telnet the server with its port number, the connections fails too. Is it possible that maybe the network that the server belongs is blocking remote connections?? Any opinions are welcome? Thanks in advance for all ur help:)

                      V 1 Reply Last reply
                      0
                      • N Nada Adel

                        thanks a lot for your help, I'll take a look at them. Just one more question regarding sql server 2008. If I want to access a sql server 2008 database remotely from a computer that resides on a different network, should I use SQL server management studio 2008 or can I just use sql server SQL management studio 2005? I've been having a hard time connecting to the database remotely. I enabled remote connections and I added some rules to the firewall to open sql server ports but to no avail. I've done everything that could allow remote connection but failed to connect to it and when I telnet the server with its port number, the connections fails too. Is it possible that maybe the network that the server belongs is blocking remote connections?? Any opinions are welcome? Thanks in advance for all ur help:)

                        V Offline
                        V Offline
                        Vimalsoft Pty Ltd
                        wrote on last edited by
                        #12

                        Well most of the Time i access SQL Servers within the same Network, or i remote Desktop. I suggest you look at you Antivirus. Turn it off and see if you can connect, if you can then consider add an Exeption for that Connection in your AV. Again the Errors you get when trying to connect to a Remote SQl Server might lead to a Solution. am not sure what Type of Errors you are Getting.

                        Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                        N 1 Reply Last reply
                        0
                        • V Vimalsoft Pty Ltd

                          Well most of the Time i access SQL Servers within the same Network, or i remote Desktop. I suggest you look at you Antivirus. Turn it off and see if you can connect, if you can then consider add an Exeption for that Connection in your AV. Again the Errors you get when trying to connect to a Remote SQl Server might lead to a Solution. am not sure what Type of Errors you are Getting.

                          Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                          N Offline
                          N Offline
                          Nada Adel
                          wrote on last edited by
                          #13

                          Here's the error I get An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (.Net SqlClient Data Provider) I'll check the antivirus. Thanks a lot.

                          V 1 Reply Last reply
                          0
                          • N Nada Adel

                            Here's the error I get An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (.Net SqlClient Data Provider) I'll check the antivirus. Thanks a lot.

                            V Offline
                            V Offline
                            Vimalsoft Pty Ltd
                            wrote on last edited by
                            #14

                            look at this http://www.google.co.za/#hl=en&source=hp&q=An+error+has+occurred+while+establishing+a+connection+to+the+server.+When+connecting+to+SQL+Server+2005%2C+this+failure+may+be+caused+by+the+fact+that+under+the+default+settings+SQL+Server+does+not+allow+remote+connections.+%28provider%3A+TCP+Provider%2C+error%3A+0+-+A+connection+attempt+failed+because+the+connected+party+did+not+properly+respond+after+a+period+of+time%2C+or+established+connection+failed+because+connected+host+has+failed+to+respond.%29+%28.Net+SqlClient+Data+Provider%29&btnG=Google+Search&meta=&aq=f&oq=An+error+has+occurred+while+establishing+a+connection+to+the+server.+When+connecting+to+SQL+Server+2005%2C+this+failure+may+be+caused+by+the+fact+that+under+the+default+settings+SQL+Server+does+not+allow+remote+connections.+%28provider%3A+TCP+Provider%2C+error%3A+0+-+A+connection+attempt+failed+because+the+connected+party+did+not+properly+respond+after+a+period+of+time%2C+or+established+connection+failed+because+connected+host+has+failed+to+respond.%29+%28.Net+SqlClient+Data+Provider%29&fp=ed210fd1eee6092c[

                            N 1 Reply Last reply
                            0
                            • V Vimalsoft Pty Ltd

                              look at this http://www.google.co.za/#hl=en&source=hp&q=An+error+has+occurred+while+establishing+a+connection+to+the+server.+When+connecting+to+SQL+Server+2005%2C+this+failure+may+be+caused+by+the+fact+that+under+the+default+settings+SQL+Server+does+not+allow+remote+connections.+%28provider%3A+TCP+Provider%2C+error%3A+0+-+A+connection+attempt+failed+because+the+connected+party+did+not+properly+respond+after+a+period+of+time%2C+or+established+connection+failed+because+connected+host+has+failed+to+respond.%29+%28.Net+SqlClient+Data+Provider%29&btnG=Google+Search&meta=&aq=f&oq=An+error+has+occurred+while+establishing+a+connection+to+the+server.+When+connecting+to+SQL+Server+2005%2C+this+failure+may+be+caused+by+the+fact+that+under+the+default+settings+SQL+Server+does+not+allow+remote+connections.+%28provider%3A+TCP+Provider%2C+error%3A+0+-+A+connection+attempt+failed+because+the+connected+party+did+not+properly+respond+after+a+period+of+time%2C+or+established+connection+failed+because+connected+host+has+failed+to+respond.%29+%28.Net+SqlClient+Data+Provider%29&fp=ed210fd1eee6092c[

                              N Offline
                              N Offline
                              Nada Adel
                              wrote on last edited by
                              #15

                              yes, I know, I've searched these pages but still no access. I will try the antivirus thing and see if I can access it. Also I think it's the network that has a problem. Thanks a lot for all ur help.

                              V 1 Reply Last reply
                              0
                              • N Nada Adel

                                yes, I know, I've searched these pages but still no access. I will try the antivirus thing and see if I can access it. Also I think it's the network that has a problem. Thanks a lot for all ur help.

                                V Offline
                                V Offline
                                Vimalsoft Pty Ltd
                                wrote on last edited by
                                #16

                                You are Welcome

                                Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                                S 1 Reply Last reply
                                0
                                • N Nada Adel

                                  Unfortunately the server doesn't allow ftp for security so I can't backup the database and then send it through ftp to the other server. So is there anyway I can do this from sql server 2008? Is there a way to write the url or path of the remote server in order to save the backup file? example: \\1.2.3.4\.... something like that?

                                  I Offline
                                  I Offline
                                  i i i
                                  wrote on last edited by
                                  #17

                                  i dont know whether your problem is solved or not but just allows remote connections and connect to your remote server , and take backup you can also create jobs/ schedules to do this and database mirroring is also an option , you can also config emails in case of a db backup failure , simple

                                  Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

                                  N 1 Reply Last reply
                                  0
                                  • I i i i

                                    i dont know whether your problem is solved or not but just allows remote connections and connect to your remote server , and take backup you can also create jobs/ schedules to do this and database mirroring is also an option , you can also config emails in case of a db backup failure , simple

                                    Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

                                    N Offline
                                    N Offline
                                    Nada Adel
                                    wrote on last edited by
                                    #18

                                    thanks a lot, I did that using a job that takes a backup every 1 hour daily. The problem is that FTP is blocked on the server so I can't transfer the backup file to another server. Do you have any idea how to do that withour FTP? thanks in advance

                                    I 1 Reply Last reply
                                    0
                                    • N Nada Adel

                                      thanks a lot, I did that using a job that takes a backup every 1 hour daily. The problem is that FTP is blocked on the server so I can't transfer the backup file to another server. Do you have any idea how to do that withour FTP? thanks in advance

                                      I Offline
                                      I Offline
                                      i i i
                                      wrote on last edited by
                                      #19

                                      Did you try Database Mirroring or copy database , their are also large number of utilities available for taking backup and can FTP or email http://www.freedownloadsplace.com/Products/38854/SQLBackupAndFTP[^] http://www.freedownloadscenter.com/Utilities/Backup_and_Copy_Utilities/SQL_Server_Backup.html[^]

                                      Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

                                      N 1 Reply Last reply
                                      0
                                      • I i i i

                                        Did you try Database Mirroring or copy database , their are also large number of utilities available for taking backup and can FTP or email http://www.freedownloadsplace.com/Products/38854/SQLBackupAndFTP[^] http://www.freedownloadscenter.com/Utilities/Backup_and_Copy_Utilities/SQL_Server_Backup.html[^]

                                        Best Of Regards, SOFTDEV If you have knowledge, let others light their candles at it

                                        N Offline
                                        N Offline
                                        Nada Adel
                                        wrote on last edited by
                                        #20

                                        Thanks a lot :)

                                        1 Reply Last reply
                                        0
                                        • V Vimalsoft Pty Ltd

                                          You are Welcome

                                          Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

                                          S Offline
                                          S Offline
                                          singhum
                                          wrote on last edited by
                                          #21

                                          Vuyiswa Maseko wrote:

                                          C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/[IGI](http://projectigigame.com)/itsabacus/

                                          need more information about it if possible.

                                          V 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups