How to list all the databases in SQL Server

To list all the databases in SQL Server 2005 or 2008 use one of the following Stored Procedures:

EXEC sp_databases

or

EXEC sp_helpdb

If the post helped you, please share it:
Pin It

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">