string conStr=
@"server = (local)\kevin;Integrated Security = SSPI;database=northwind";
这句中的(local)\kevin有问题
改为
"data source=localhost;initial catalog=northwind;Integrated Security = SSPI"
或
"server = localhost\kevin;Integrated Security = SSPI;database=northwind";
@"server = (local)\kevin;Integrated Security = SSPI;database=northwind";
这句中的(local)\kevin有问题
改为
"data source=localhost;initial catalog=northwind;Integrated Security = SSPI"
或
"server = localhost\kevin;Integrated Security = SSPI;database=northwind";
string conStr="Data Source=数据源名;User Id=用户名;PassWord=密码;Initial Catalog=数据库名;";
但我改成SQL身份验证,用SA登陆就可以了
如何把这用户名和密码以非明文的方式输入?或者加密