Q
Problem solve Get help with specific problems with your technologies, process and projects.

SQL Server query to import database names

Discover a query that will import all database names into your SQL Server.

I want to import all database names into my SQL Server using a query. How can I do this?
Use the following SQL Server query:

SQL Server 2000: SELECT * FROM master.dbo. sysdatabases
SQL Server 2005: SELECT * FROM master.sys.databases

Dig Deeper on SQL Server Stored Procedures

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close