Transact SQL: Get list of all databases in server




How to get as SQL query result the list of databases in SQL server.

select name, database_id  from sys.databases

 




No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment





MarkiMarta.com. Notes of web-specialist
Since 2009
18+