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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop database problem

Status
Not open for further replies.

gny

Programmer
Jun 3, 2001
116
SE
I have a class module in Access, whose objects hold a connection to an SQL7 database. I have one database per object plus a database for administering the other ones.
When I want to delete an object permanently, I close that object´s connection to its db, set the object to nothing and then use the "administative" db to drop the database for the object that I want to delete. This doesn´t work. I get an error message saying that the database cannot be dropped because it is in use, even though i have closed the connection. I have even tried waiting for a few seconds after the connection was closed before I tried to drop the database, but it still didn´t work. Why does SQL7 consider the database still in use and what can I do to tell it not to?

/gny
 
Never mind, I guess I posted this in the wrong forum.
Besides I figured it out myself. Check the SQL server forum if your interested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top