【C#】c#连接SQL server数据库的两种方式
编程加油站吧
全部回复
仅看楼主
level 8
SQLSERVER认证模式:
SqlConnection sqlCon = new SqlConnection();
sqlCon.ConnectionString = "Data Source=;Initial Catalog=;User Id=sa;Password=123456;";
sqlCon.Open();
2015年01月03日 03点01分 1
level 8
windows认证模式:
Data Source=.;Initial Catalog=数据库;Integrated Security=True
2015年01月03日 03点01分 2
level 8
你说得好有道理,我竟无言以对o(╯□╰)o
2015年01月25日 01点01分 3
1