USE master GO Select loginname From master.dbo.syslogins GO