1. 程式人生 > >SqlServer數據庫鏈接字符串

SqlServer數據庫鏈接字符串

實例 lse 驗證 connect window init pwd password 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;//將使用用戶名和密碼驗證登陸

SqlServer數據庫鏈接字符串