SqlServer数据库链接字符串

完整链接字符串:

1."DataSourse=.\你的实例;Initial Catalog=yourdatabase;User ID=*;Password=*;Trusted_Connection=True;"

2."Server=.\你的实例;Database=yourdatabase;UID=*;PWD=*; Integrated Seurity=false; "

Trusted_Connection=True;//将使用windows凭证验证用户

Trusted_Connection=False;//将使用用户名和密码验证登陆

猜你喜欢

转载自www.cnblogs.com/wzs2016/p/10074751.html