首页 > 代码库 > c#使用SqlConnection连接SqlServer的connectstring

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;

c#使用SqlConnection连接SqlServer的connectstring