C# 与 SQL SERVER 的连接字符串
usingSystem.Data.SqlClient;privateSqlConnectionsqlCon;privateStringserver="server=.;u...
using System.Data.SqlClient;
private SqlConnection sqlCon;
private String server = "server = .; uid = sa ;pwd = sa ;database = yourDb";
sqlCon = new SqlCoonection();
sqlCon.ConnectionString = server;
sqlCon.open();
我现在的连接字符串 server = .; uid = sa ;pwd = sa ;database = yourDb 我想问下 还又没其他的写法??? 展开
private SqlConnection sqlCon;
private String server = "server = .; uid = sa ;pwd = sa ;database = yourDb";
sqlCon = new SqlCoonection();
sqlCon.ConnectionString = server;
sqlCon.open();
我现在的连接字符串 server = .; uid = sa ;pwd = sa ;database = yourDb 我想问下 还又没其他的写法??? 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询