By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

How do i restore my sql2000 database on remote sql2000server

P: 1
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=;"

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
Share this question for a faster answer!
Share on Google+

Post your reply

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