c# - List all SQL instances, and their tables -
I want to list all SQL server instances and their tables.
I have a code that lists all the server is correct but I have not received a list of their tables.
Datatale data source = SqlDataSourceEnumerator.Instance.GetDataSources (); Foreach (DataRow line in DataSources.Rows) {Console.WriteLine ("Server name:" + row ["server name"]); Forchahaa (different items in the line item array) {Console.WriteLine ("- item:" + item); }}
You can query that the tables in sys Tables are using
. See below:
Use your DDNAMem to select CES. Go to TOS
Comments
Post a Comment