Hey guys,
I am documenting a procedure for restoring our SQL database, and I want to include some tips for finding users logged into the database since SQL will not let you restore a database until everyone logs out.
I have used "exec sp_who", but it lists too much information. Is there way to tell sp_who to only list for a specific dbname?
Any other methods for finding users? Thanks!
I am documenting a procedure for restoring our SQL database, and I want to include some tips for finding users logged into the database since SQL will not let you restore a database until everyone logs out.
I have used "exec sp_who", but it lists too much information. Is there way to tell sp_who to only list for a specific dbname?
Any other methods for finding users? Thanks!