How can i get all database using smo
I am using smo for the first time can anybody guide me how can I get all the Database list using this also I want to know all the tables want to display all the databases in combobox
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Biswa Pujarini MohapatraRank #465 · 5.4K reputationPosted Jan 31, 2014, 5:54 PM EST
//to get all the tables
Database db = srv.Databases["TestDB"];
SMO is Always my favorite. Stay tuned on my upcoming article.
hope it helps
Biswa Pujarini MohapatraRank #465 · 5.4K reputationPosted Jan 31, 2014, 5:46 PM EST
Princu S11 reputationPosted Jan 31, 2014, 5:50 PM EST