To list all databases in MSSQL you can use the following snippet.
Sample 1 MSSQL
SELECT name FROM master..sysdatabases
Sample 2 MSSQL
EXEC sp_databases
All the Code Snippets and Samples you need
To list all databases in MSSQL you can use the following snippet.
SELECT name FROM master..sysdatabases
EXEC sp_databases
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to list all databases in #MSSQL http://t.co/j26z8qMQog #sql #coding #programming #code #dotnet