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
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.
Biswa Pujarini MohapatraPosted Jan 31, 2014, 10:54 PM
//to get all the tables
Database db = srv.Databases["TestDB"];
SMO is Always my favorite. Stay tuned on my upcoming article.
hope it helps
Princu SPosted Jan 31, 2014, 10:50 PM
Biswa Pujarini MohapatraPosted Jan 31, 2014, 10:46 PM