Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disconnected DataSets
Message
From
07/09/2003 21:03:58
 
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00825290
Message ID:
00826926
Views:
25
Watch out for connection pooling.

-Mike

>>Yep, that's the way it's supposed to work.
>>Hmmm ... how are you determining that the connection is still open?
>
>With a stored proc I wrote that implements this query:
>
>select master.dbo.sysdatabases.Name,
>   master.dbo.sysprocesses.login_time,
>   master.dbo.sysprocesses.nt_username,
>   master.dbo.sysprocesses.loginame,
>   master.dbo.sysprocesses.program_name,
>   master.dbo.sysprocesses.open_tran,
>   master.dbo.sysprocesses.uid
> from master.dbo.sysprocesses
>   join master.dbo.sysdatabases
>    on master.dbo.sysprocesses.dbid
>     = master.dbo.sysdatabases.dbid
> where master.dbo.sysdatabases.name = 'Northwind'
>
>This returns a result set with a single record for each active connection. Very helpful when you're trying to ensure that a LAN application is using no more than one connection, or when determining how many users are actively logged into an application (assuming each instance of the App is using one connection).
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform