MTSkull Posted November 15, 2004 Posted November 15, 2004 I need to be able to get a list of a servers available databases. Each project has its own database with an employee list, and there are 5 different servers each with 5-10 relevant DB's Per server. I would like a list of the Databases to populate a combo box when the user selects a particular server. How do I get the DB list, hopefully using the SQLClient object with MSSQL Server 2K? Thanks MTS Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
Administrators PlausiblyDamp Posted November 15, 2004 Administrators Posted November 15, 2004 Try SELECT * FROM INFORMATION_SCHEMA.SCHEMATA Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
MTSkull Posted November 15, 2004 Author Posted November 15, 2004 Worked like a charm, thanks! Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.