select a database and in that select tables. using c# . use web config
- by syedsaleemss
Im using c# .net windows form application.
I have many databases created using sql server Management studio 2005. Each database has several tables. i have a button, when clicked should allow me to select a database among several databases and in that database i want to select a single table. Later i need to display the contents of the selected table into a datagrid view.I came to know that it can be done using Webconfig. How can i acheive this?
It goes like this
a) select a database
b) In that database select a table
c) display the contents into a datagridview.