Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List databases...

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
What's the SQL command to list all the databases when connected to a server?

If it's database specific... could you tell me for MySQL and MSDE?

Thanks,
Rob
 
And with my own answer... (sorry)

SHOW DATABASES;
For MySQL anyway...

doesn't appear to work for MSDE... but I'm just passing info to the MSDE guy, not running it myself.

-Rob
 
sp_helpdb

to answer the MSDE portion...

sorry for the all posts.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top