Getting List of All Server Databases in MS SQL
The following query should be run to get the list of all databases in the active instance in MS SQL Server.
SELECT Name FROM dbo.sysdatabasesAnother method is as follows..
EXEC sp_databases
The following query should be run to get the list of all databases in the active instance in MS SQL Server.
SELECT Name FROM dbo.sysdatabasesAnother method is as follows..
EXEC sp_databases