Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How can i get the all databese

Author  Topic 

boreddy
Posting Yak Master

172 Posts

Posted - 2008-08-05 : 09:14:53
How can i get the all databese names by query

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-08-05 : 09:23:52
sp_databases
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-05 : 09:37:22
or

select name from sys.databases


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -