LonnieJohnson
Programmer
Is there another command or additional syntax to use if you want to detach a database and clear out any users that are in the database?
I am using this in a stored proc...
I get the message that it cannot detach because it is currently in use.
When doing this via enterprise manager there is an option to clear them out. How do I do that with T-SQL?
Thanks.
ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
I am using this in a stored proc...
Code:
EXEC sp_detach_db 'clientDb', 'true'
I get the message that it cannot detach because it is currently in use.
When doing this via enterprise manager there is an option to clear them out. How do I do that with T-SQL?
Thanks.
ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!