Skip to content

Instantly share code, notes, and snippets.

@bigsan
Created November 19, 2010 17:34
Show Gist options
  • Save bigsan/706831 to your computer and use it in GitHub Desktop.
Save bigsan/706831 to your computer and use it in GitHub Desktop.
SQL: show databases info similar to sp_helpdb
SELECT
[name] database_name,
database_id,
SUSER_SNAME(owner_sid) owner_name,
recovery_model_desc,
collation_name,
[compatibility_level],
create_date
FROM sys.databases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment