RealDevTips > Development > SQL and databases > Transact SQL: Get list of all databases in server Transact SQL: Get list of all databases in server Published on March 24, 2016 by Aleksei How to get as SQL query result the list of databases in SQL server. select name, database_id from sys.databases Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment.
Leave a Reply