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
 
Back
Top