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

Database access question 1

Status
Not open for further replies.
Joined
Dec 11, 2000
Messages
281
Location
GB
Morning all

Can anyone tell me if there's a way to see who is currently accessing an SQL 7 database?
I tried to restore a database today, and an error occurred stating that it was in use and that the d/b needed to be locked.
Ideas??
 
From a Query Analyser window you can run the following:

exec sp_who

Alternatively from Enterprise Manager go to the Management folder and then look at processes within Current Activity

Rick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top