摘要:
一下是两种连接方式: public List<string> GetMSSQLDBNameList(string DSN, string UID, string PWD) { List<string> databases=new List<string> (); SqlConnection Connection = new SqlConnection(String.Format("Data Source={0};Initial Catalog=master;User ID={1};PWD={2}", DSN, UID, PWD)); DataTable D 阅读全文