摘要:
public static List<string> GetSqlServerNames() { List<string> serverNames = new List<string>(); DataTable table = SqlClientFactory.Instance.CreateDataSourceEnumerator().GetDataSources(); foreach (DataRow dr in table.Rows) { string ser... 阅读全文