Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sql_logins

  No additional text.


Syntax
CREATE VIEW sys.sql_logins AS
	SELECT p.name,
		p.id AS principal_id,
		p.sid, p.type,
		n.name AS type_desc,
		sysconv(bit, p.status & 0x80) AS is_disabled,
		p.crdate AS create_date,
		p.modate AS modify_date,
		p.dbname AS default_database_name,
		p.lang AS default_language_name,
		r.indepid AS credential_id,
		sysconv(bit, p.status & 0x20000) AS is_policy_checked,
		sysconv(bit, p.status & 0x40000) AS is_expiration_checked,
		convert(varbinary(256), LoginProperty(p.name, 'PasswordHash')) AS password_hash
	FROM master.sys.sysxlgns p
	LEFT JOIN sys.syssingleobjrefs r ON r.depid = p.id AND r.class = 63 AND r.depsubid = 0	-- SRC_LOGIN_CREDENTIAL
	LEFT JOIN sys.syspalnames n ON n.class = 'LGTY' AND n.value = p.type
	WHERE type = 'S'
		AND has_access('LG', id) = 1

 
Last revision 2008RTM
See also

  sp_change_users_login (Procedure)
sp_check_removable_sysusers (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash