467,151 Members | 925 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,151 developers. It's quick & easy.

How do i restore my sql2000 database on remote sql2000server

Hello,
I have a database on my system with same name as that on the remote server.I do have DSN Name, userid & password for connecting the remote server.
Is there any possibility of restoring the database backup taken from the local system to the remote server database using Visual basic.

I tried to get connected using the following string

Set con = New ADODB.Connection
con.ConnectionString = "Provider=SQLOLEDB;server=SYSTEM1;" & _
"Initial Catalog=testing1;User Id=sa;Password=;"
con.Open

I used the following syntax to restote the database from my local system disk F to restore the database by name testing1 located on the remote server.

sql = "USE master RESTORE DATABASE arnavtranslines FROM DISK = '\\system1\f\testing1.bak'"

Even though the statement is getting executed, the database on the remote machine is not getting updated.

Can any one guide me.
Nov 21 '06 #1
  • viewed: 886
Share:

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by pheonix1t | last post: by
3 posts views Thread by butatista | last post: by
5 posts views Thread by sarahlin@yahoo.com | last post: by
4 posts views Thread by satish mullapudi | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.