How to list database?

Hello !
Please tell me how to display a list of all available SQL Server database for example on a listbox so users chose their desired database? Thank you!
July 9th 19 at 13:50
1 answer
July 9th 19 at 13:52
SqlConnection.GetSchema with the option "Databases" will return a DataTable with a list of databases. Bind it to a ListBox or fill the ListBox manually..

Find more questions by tags DatabasesSQL Server