Get all database name in ms sql server

In this programming tutorial we will learn how to get all database name in ms sql server. It's a quite easy task to do and we just have to execute one line of query. Let's have a look over how to do so.
Get all database name in ms sql server

Select * from sys.databases

This can be used to fetch all the database name in ms sql server.

So that'it. I hope you will find this tutorial very informative.

I love your feedback.

0 comments: