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
 View or tables to check for number of DBs

Author  Topic 

hannah00
Starting Member

31 Posts

Posted - 2007-08-24 : 13:33:54
I am new with SQL and I am Oracle DBA, trying to learn SQL. Any way, in SQL, is there a view or tables that you can run to pull out a list of the databases inside an instance? I don't want to use the GUI though.

thx

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-08-24 : 13:52:37
Select * from master..sysdatabases

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

hannah00
Starting Member

31 Posts

Posted - 2007-08-24 : 15:31:02
thanks
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-08-24 : 23:05:07
Or sp_helpdb.
Go to Top of Page
   

- Advertisement -