![](/img/trans.png)
[英]How to check if login program supports windows authentication and sql authentication mode?
[英]login info sql windows authentication
即時通訊使用Windows身份驗證和標准用戶名訪問我的數據庫在mssql中
我需要什么密碼才能通過linq將其連接到數據庫,或者我將pwd留空。
我試圖在管理工作室創建這個工作的帳戶
通常你使用這樣的連接字符串:
數據源= YOURSERVER;初始目錄= Nodthwind;集成安全性=真;
其中Integrated Security = true表示應用程序將嘗試使用運行它的Windows帳戶訪問服務器。 所以你不必提供任何密碼。
如果您使用的是SQL身份驗證,則可以使用以下類型的connectionstring。
<connectionStrings>
<add name="EFDbContext" connectionString="Data Source=TITAN\SQLEXPRESS;Initial
Catalog=SportsStore;Persist Security Info=True;User ID=adam;Password=adam"
providerName="System.Data.SqlClient"/>
</connectionStrings>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.