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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mohammad MujtabaPosted Dec 28, 2006, 8:55 AM
new SqlConnection("server=;database=master;uid=sa;pwd=;");cmd= new SqlCommand("SELECT sysdatabases.name FROM sysdatabases",con);use this query...............
SqlConnection con =