復制代碼 代碼如下:
string ConnStr = "server = localhost;
user id = sa; password = xxx; database = northwind";
復制代碼 代碼如下:
string ConnStr = "server = localhost;
integrated security = sspi; database = northwind";
或string ConnStr = "server = localhost;
trusted_connection = yes; database = northwind";
復制代碼 代碼如下:
Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
復制代碼 代碼如下:
Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes;
新聞熱點
疑難解答