![](/img/trans.png)
[英]Cannot open database "test" requested by the login. The login failed. Login failed for user 'Domain\userid'
[英]Cannot open database "MyBase" requested by the login. The login failed. Login failed for user 'domain\User'
string connectionString ="Server=localhost;Database=StudentRate;Trusted_Connection=True;Encrypt=False;";
我的連接有問題,一般是用戶數據庫,我無法連接到任何數據庫。 login 和 user 的屬性。 我嘗試了各種方法,但問題沒有解決。
嘗試
Server=localhost;Database=StudentRate;Trusted_Connection=True;MultipleActiveResultSets=true
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.