Question Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
A db cannot be restored when there is an open connection. How do I determine who or what has an open connection?
3 replies
by compulew Accepted solution
Clarifications
by tony hopkinson Accepted solution
Connect to the server, Select Management -> Activity Monitor.
by scott_heath Accepted solution
Tony is right, but you can also use the stored procedure sp_who2. Or make a custom stored proc that takes a dbname as a parameter and used DB_ID and a join between sys.processes and master.dbo.sysdatabases to show only the relevant connections. :)
Regards,
Scott
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending
Question Locked
Internet connection perfect on PC, not connecting anywhere else
0 helpful
4 replies
Question Locked
Using multi-NIC setup for NAS + router — better than VLAN?
0 helpful
4 replies
0 helpful
5 replies
Question Locked
Unknown device connected to my network
0 helpful
2 replies
Question Locked
How to change public IP without ISP?
0 helpful
2 replies