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
 General SQL Server Forums
 New to SQL Server Programming
 number of sessions

Author  Topic 

WoodHouse
Posting Yak Master

211 Posts

Posted - 2010-03-09 : 02:22:11
How to limit the number of sessions/Connections for a specific login and host(Machine name)?

Why I am asking this questions is to manage the developers not to use more than n sessions / Connections from their machine (Host)?


One more questions : What is the difference between sessions and connections ? is it one to one or one to many or many to many relations?

Help on this
Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-09 : 19:50:44
You would need to write a custom script to KILL connections after a host has reached its connection threshold. This feature is not built into SQL Server.

Sessions/Connections have the same meaning, in my opinion. Other people might use the terms differently. They are just terms though.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

WoodHouse
Posting Yak Master

211 Posts

Posted - 2010-03-10 : 01:29:57


Thanks a lot tara
Go to Top of Page

WoodHouse
Posting Yak Master

211 Posts

Posted - 2010-03-10 : 01:40:16
Hi tara

why Microsoft has to maintain two DMVs.Sys.dm_exec_sessions and sys.dm_exec_connections.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-03-10 : 14:35:04
I don't know.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -