完整鏈接字符串:
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;//將使用用戶名和密碼驗證登陸