Question : Getting information about current connections in SQL Server

Hello everyone.

I am trying to make a stored procedure that checks if someone is connected to my database. If noone is connected, it will delete some records.

Everyone connects to the database using a standar username and password. Is there a function that returns the number of connections for that user or some other way to get that info?

Answer : Getting information about current connections in SQL Server

actually

sp_who2 will give you more information.....
Random Solutions  
 
programming4us programming4us