Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get list Of All Data Base in a SQL Server
WhatsApp
Rahul Kumar Saxena
9y
3.6
k
0
0
25
Blog
To get the list of all Data Base in your SQL Server use below Query:
SELECT
[
NAME
],DATABASE_ID,CREATE_DATE
FROM
[SYS].[DATABASES]
Image 1.
We have 1 inbuilt Stored Procedure to get list of all Data Base in a SQL Server:
EXEC
sp_database
Image 2.
Get list Of All Data Base in a SQL Server
Up Next
Save Array Or List Of Records As XML Data To SQL Server In One Call
Ebook Download
View all
Introducing Microsoft SQL Server 2016
Read by 11k people
Download Now!
Learn
View all
Membership not found