Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RESTORE Probs

Status
Not open for further replies.

NevG

Programmer
Oct 10, 2000
162
GB
Hi Gang

I'm still having trouble restoreing a SQL server dbase through VB when I am using it.

I have several data environments in place allwith connection strings obviously. I have tried changing these strings, aND also using the USE MASTER GO approach before restoring but I continually get

'Database in use' Errors

Please help guru people
 
Is it the VB program connection that prevents the restore or are other users connected and using the database?

If other users are in the database, you'll want to get them out and set the database to single user mode. That can be problematic if users are continually connecting. You can download a stored procedure from SWYNK.COM to kill user connections and set the database in single user mode.

Download from Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top