Display the server-level information the application role can currently view.

Published 09 August 07 03:28 AM | SQL Master 

SELECT sid, status, name, dbname, hasaccess, loginname
FROM master.dbo.syslogins;

GO


SELECT spid, kpid, lastwaittype, waitresource, dbid
FROM master.dbo.sysprocesses;
GO

Comments

# Other SQL Server Blogs around the Web said on August 9, 2007 3:45 AM:

SELECT sid, status, name, dbname, hasaccess, loginname FROM master.dbo.syslogins; GO SELECT spid, kpid

# SSQA.net - SqlServer-QA.net said on August 9, 2007 11:08 AM:

SELECT sid, status, name, dbname, hasaccess, loginname FROM master.dbo.syslogins; GO SELECT spid, kpid

Anonymous comments are disabled

About SQL Master

**__________________________________** SQL Server MVP, Sr. DBA & industry expert. - Knowledge is of two kinds. We know a subject ourselves or we know where we can find information on it. It is also a power and you will gain by sharing it.

Search

Go

This Blog

«August 2007»
SMTWTFS
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

Syndication