|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 1:33 AM
Points: 1,186,
Visits: 1,852
|
|
There are lots of users in sleeping mode in sql server are they unused or what does it mean ...are they connected....Please any one help.......
Thanks
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 12:59 PM
Points: 37,640,
Visits: 29,895
|
|
Means they are not currently running any queries.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: 2 days ago @ 3:21 AM
Points: 2,415,
Visits: 3,370
|
|
| They are connect but no executing anything
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 1:33 AM
Points: 1,186,
Visits: 1,852
|
|
If they are in sleeping mode yet can they be a reason of slow performance?
Is there any specific number that this much user could connect to sql server?
Can we restrict that after 50 or 60 users connection will not be created?
Please give the three answers seperately...Help
Thanks
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, April 26, 2013 12:57 PM
Points: 92,
Visits: 280
|
|
Hello Ajay,
Here are answers to your questions.
Q: If they are in sleeping mode yet can they be a reason of slow performance?
A: Sleeping means waiting for a event to occur. At any given point in time there can be multiple connections in sleeping mode as they will be waiting for IO, CPU, MEMORY etc. The thing is we need to identify which resource is which is waited most.
Q: Is there any specific number that this much user could connect to sql server?
A: There is no specific number.
Q: Can we restrict that after 50 or 60 users connection will not be created?
A: We can restict concurrent connection count on SQL by a SP_CONFIGURE paramater named USER CONNECTIONS.
or
Right click on Instance Name in SSMS under object explorer and select Properties. Select Connections option under "Select a Page" from Server Properties screen. Right hand side provide values (default 0 unlimited) under Maximum number of concurrent connectins options.
Regards GURSETHI
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 1:33 AM
Points: 1,186,
Visits: 1,852
|
|
You have done a great job sethi...
One more thing is confusing me, I have a db server and web server.If anyone log in into website using user id password will it also make a connection in the db server? If no then what users are login into db servers...?
Thanks
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 1:33 AM
Points: 1,186,
Visits: 1,852
|
|
Dear,
I am also not able to save the result of a query into a CSV file.After saving it doesn't give a readable format.
Thanks
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 12:59 PM
Points: 37,640,
Visits: 29,895
|
|
GURSETHI (6/1/2009)
Q: If they are in sleeping mode yet can they be a reason of slow performance?
A: Sleeping means waiting for a event to occur. At any given point in time there can be multiple connections in sleeping mode as they will be waiting for IO, CPU, MEMORY etc. The thing is we need to identify which resource is which is waited most.
A sleeping connection is one that is not running a query at the moment. If a connection is running a query and is waiting for a resource (lock, memory, IO) it will be SUSPENDED. If it is waiting for time on the CPU it will be RUNNABLE. If it is currently executing it's status will be RUNNING
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 11:41 AM
Points: 77,
Visits: 218
|
|
| The web server uses some SQL credentials to connect to the SQL Server. So, if you have such a hardwired user for your SQL connection, that one will be repeatedly setting the connections. Usually you'll get a connection, perform the query and leave the SQL Server.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 1:33 AM
Points: 1,186,
Visits: 1,852
|
|
|
|
|