Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Find open connections sql server 2000

Author  Topic 

JeffS23
Posting Yak Master

212 Posts

Posted - 2007-12-31 : 15:25:15
I am wondering if there is a software program or something that is part of sql server 2000 that will show if I have any open connections in my classic asp code. Does anyone know of any?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-12-31 : 15:34:33
Just run sp_who/sp_who2 in Query Analyzer.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

JeffS23
Posting Yak Master

212 Posts

Posted - 2007-12-31 : 15:54:15
I have used this before, but would I assume a lot of sleeping connections means I have some pages that aren't closed properly? I don't see that when I look at it, but curious if that would be a good sign to look for.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-12-31 : 16:16:19
You can use SQL Profiler to see what the connections are actively doing.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-31 : 23:51:16
You'll see them if app connects to sql with connection pooling.
Go to Top of Page
   

- Advertisement -