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
 Get All Database Names

Author  Topic 

paramu
Posting Yak Master

151 Posts

Posted - 2009-03-10 : 08:08:43
Iam in need to get all database names from my sql-server 2005.
Ideas will be appreciated.

Thanks


Paramu @ PARANTHAMAN

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-03-10 : 08:12:43
select NAME from sys.databases
Go to Top of Page

Nageswar9
Aged Yak Warrior

600 Posts

Posted - 2009-03-10 : 08:12:55
select * from sys.databases
Go to Top of Page

paramu
Posting Yak Master

151 Posts

Posted - 2009-03-10 : 08:22:17
Really both are doing better to their professiions...

Well & Good ...Appreciated...

Iam proud of you guys.

Thanks

Paramu @ PARANTHAMAN
Go to Top of Page

Nageswar9
Aged Yak Warrior

600 Posts

Posted - 2009-03-10 : 08:25:08
quote:
Originally posted by paramu

Really both are doing better to their professiions...

Well & Good ...Appreciated...

Iam proud of you guys.

Thanks

Paramu @ PARANTHAMAN




Welcome
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-03-10 : 08:48:50
or

EXEC sp_databases

Madhivanan

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

NeilG
Aged Yak Warrior

530 Posts

Posted - 2009-03-10 : 09:10:34
or try this

sp_helpdb
Go to Top of Page
   

- Advertisement -