Display SQL database names

  • Thread starter Thread starter Roy
  • Start date Start date
R

Roy

I am using C# and would like to display all my SQL databases in a listbox.
How do I use the sp_helpdb to retrive the names of my databases?
 
Browse around the MSDN library in the System.Data namespace. If you look
deep enough, you'll find classes that will assist you in getting the
database schema (based on the ADOX from the "legacy" ASP/COM days).

Michael Earls
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top