This operation requires a connection to the 'master' database

前端 未结 9 822
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 19:28

I have suddenly started getting an error in my application.

The error is:

This operation requires a connection to the \'master\' database. Una

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 20:27

    If you are working on windows authentication :

    • You can add "Integrated Security=True" to your connectionString.

    For user authentication:

    • You must add sql server authentication informations ("uid=YourUserName; Password=yourpassword;") to your connectionString.

提交回复
热议问题