Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Can we set session timout period Server 2005.? Expand / Collapse
Author
Message
Posted Monday, April 5, 2010 7:20 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 7:14 PM
Points: 1,538, Visits: 2,586
Dear All,

Can we set ssion timout period Server 2005.? (Like in Asp.dot etc,..)

Thanks.
Post #896682
Posted Monday, April 5, 2010 7:38 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 11:31 AM
Points: 12,901, Visits: 32,136
Joy i believe that is a function of the application that is doing the connecting...for example SSMS will wait forever, whereas any application that is creating an instnace of a SQLConnection gets a default timeout of 30 seconds; there is a parameter ont he SQLCommand to change the timeout.

Since the application decides how long it will wait for SQL to respond, I don't think you'll find a server side setting for it.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #896691
Posted Monday, April 5, 2010 7:45 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 11:41 AM
Points: 883, Visits: 1,415
From the SQL Server side, there is no "Session timeout" setting. If you need to do it from the server side, the proc described here: http://www.sqlservercentral.com/articles/Administration/sweepuptheslackers/158/ is a good way to clean up idle sessions that remain connected.
Post #896701
Posted Monday, April 5, 2010 7:53 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 9:27 PM
Points: 13,776, Visits: 28,178
2008 does offer the query governor as a mechanism for preventing long-running queries. You can also set a a remote server connection timeout setting for the server, however, this is specific to outgoing connections from the server, not queries coming in.

Other than that, connections, as stated above, and timeouts are maintained by the client.


----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server Query Performance Tuning
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #896708
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse