Hi all
I want to get all the DataBase names (which are present in SQL sever database)in Dropdown list or in combo box.
plz if u knw then reply me.its urgent.
Thanks a lot.
Mujtaba
Get all Database names in Como Box / Dropdownlist
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Mohammad Mujtaba15 reputationPosted Dec 28, 2006, 3:55 AM EST
new SqlConnection("server=;database=master;uid=sa;pwd=;");cmd= new SqlCommand("SELECT sysdatabases.name FROM sysdatabases",con);use this query...............
SqlConnection con =