File Details
| Downloads: |
2154 |
File Size: |
64.6kB |
| Posted By: |
eralper |
Views: |
1463 |
| Date Added: |
28 Sep 2007 |
|
You can list both SQL Server 2000 and SQL Server 2005 database instances within a network using this sample application code.
The sample application uses the SqlDataSourceEnumerator class which is introduced with .Net Framework 2.0 to enumerate existing SQL Server instances.
The sample Windows Forms application uses the Sql.SqlDataSourceEnumerator.Instance.GetDataSources() method to get a DataTable object instance populated with Microsoft SQL Server instances installed within the current network area. And as seen in the sample, you can populate and fill a DataGridView object or populate a ComboBox object with retrieved values about SQL Server instances.