c#使用SqlConnection连接SqlServer的connectstring

摘自https://www.connectionstrings.com/sql-server-2005/#1

 

Standard Security

Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;

Trusted Connection

Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;

posted @ 2016-12-27 23:21  信仰圣光吧  阅读(10520)  评论(0编辑  收藏  举报