How many Users are connected to the Server

----To findout how many users are connected to server
USE master
GO
SELECT DISTINCT SYSLOGINS.LoginName,SYSLOGINS.DBName,@@SERVERNAME AS 'ServerName'
FROM SYSPROTECTS,SYSLOGINS WHERE SYSADMIN=1




Comments

Popular posts from this blog

Always On FailOver Events

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"

Rule "Not Clustered o the Cluster Service is up and online. " FAILED, The machine is clustered but the cluster is not online.