sys.syslogins (Transact-SQL)

 

Contains one row for each login account.

System_CAPS_ICON_important.jpg Important


This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping System Tables to System Views (Transact-SQL). This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Applies to: SQL Server (SQL Server 2008 through current version).
Column nameData typeDescription
sidvarbinary(85)Security identifier.
statussmallintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
createdatedatetimeDate the login was added.
updatedatedatetimeDate the login was updated.
accdatedatetimeIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
totcpuintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
totiointIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
spacelimitintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
timelimitintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
resultlimitintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
namesysnameLogin name of the user.
dbnamesysnameName of the default database of the user when a connection is established.
passwordnvarchar(128)Returns NULL.
languagesysnameDefault language of the user.
denyloginint1 = Login is a Microsoft Windows user or group and has been denied access.
hasaccessint1 = Login has been granted access to the server.
isntnameint1 = Login is a Windows user or group.

0 = Login is a SQL Server login.
isntgroupint1 = Login is a Windows group.
isntuserint1 = Login is a Windows user.
sysadminint1 = Login is a member of the sysadmin server role.
securityadminint1 = Login is a member of the securityadmin server role.
serveradminint1 = Login is a member of the serveradmin fixed server role.
setupadminint1 = Login is a member of the setupadmin fixed server role.
processadminint1 = Login is a member of the processadmin fixed server role.
diskadminint1 = Login is a member of the diskadmin fixed server role.
dbcreatorint1 = Login is a member of the dbcreator fixed server role.
bulkadminint1 = Login is a member of the bulkadmin fixed server role.
loginnamenvarchar(128)Login name of the user. Provided for backward compatibility.

Mapping System Tables to System Views (Transact-SQL)
Compatibility Views (Transact-SQL)

Community Additions

ADD
Show: