SqlDataSourceEnumerator SqlEnumerator; SqlEnumerator = SqlDataSourceEnumerator.Instance; DataTable dTable = SmoApplication.EnumAvailableSqlServers(false); DataTable dTable = SqlEnumerator.GetDataSources(); foreach (DataRow db in dTable.Rows) { comboBox1.Items.Add(db["ServerName"].ToString()+ "\\" + db["InstanceName"].ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)