Quantcast
Channel: Geeks Hangout - Software
Viewing all articles
Browse latest Browse all 21

Getting a list of databases on a MS SQL Server

$
0
0

The below query will return a list of none system databases on a Microsoft SQL Server;

SELECT name FROM master..sysdatabases WHERE dbid> 4

Or you can run the below to get a list of databases along with their size and remarks;

EXECsp_databases


Viewing all articles
Browse latest Browse all 21

Trending Articles