Find Logins in SQL Server

Published on August 2022 | Categories: Documents | Downloads: 6 | Comments: 0 | Views: 70
of 3
Download PDF   Embed   Report

Comments

Content

 

SQL S Seerver ((T Transact-SQL): F Fiind Lo Logins in in SQ SQL Se Server

http://www.techonthenet.com/sql_server/questions/find_logins.php

 

Question: Is there a query to run in SQL Server that will return all SQL Server Logins and Logins and

information about those Logins?  An sw swer: er:  In SQL Server, there is a catalog view (ie: system view) called sys.sql_logins. You can

run a query against this system view that returns all of the Lo Logins gins that have been created in SQL Server as well as information about these Logins. To retrieve all Logins in SQL Server, you can execute the following SQL statement: SELECT * FROM master.sys.sql_logins; master.sys.sql_logins;

The sys.sql_logins view contains the following columns:

1 of 3 SQL S Seerver ((T Transact-SQL): F Fiind Lo Logins in in SQ SQL Se Server  

04/09/2014 00:03 http://www.techonthenet.com/sql_server/questions/find_logins.php

OLDER VERSION COMPATIBILITY In older versions of SQL Server, you can retrieve all Logins using the SQL Server 2000 system tables such as the sys.syslogins table. To retrieve all Users in SQL Server using the SQL Server 2000 system tables, you can execute the following SQL statement: SELECT * FROM master.sys.syslogins; master.sys.syslogins;

The sys.syslogins system table (SQL Server 2000) contains the following columns:

2 of 3 SQL S Seerver ((T Transact-SQL): F Fiind Lo Logins in in SQ SQL Se Server  

04/09/2014 00:03 http://www.techonthenet.com/sql_server/questions/find_logins.php

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close