Created
September 14, 2019 04:20
-
-
Save thanglequoc/dd2fe45d411efa6f636a44bce35546c7 to your computer and use it in GitHub Desktop.
Revisions
-
thanglequoc created this gist
Sep 14, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ -- list database and owner id SELECT SUSER_NAME(owner_sid), * FROM sys.databases; -- view login creation date SELECT * FROM master.sys.sql_logins; -- view database SELECT * FROM master.sys.databases;