General information
Title:
Detemining how many connections you have to a database
Hi,
I'm in the process of writing a program that will automate the SQL Detach command so that I may copy their database to my system. My problem is that the Detach command will fail if there is users using it, for pretty obvious reasons, so I would like to know when the number of connections to the database is zero.
Perhaps there is another way.
TIA
Peter
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only