Entity Framework Scaffold-DbContext Login failed for user

后端 未结 3 1809
说谎
说谎 2021-02-01 03:02

I am trying to build an API using Visual Studio 2017 and .NET Core 2 with Entity Framework Core. I am following the directions from This Link. I am on the section titled: Reve

相关标签:
3条回答
  • 2021-02-01 03:42

    Please make sure the user login exists on the target SQL Azure database and not only on the Azure SQL Database server.

    -- On master database CREATE LOGIN MaryLogin WITH PASSWORD = '';

    -- On the user database

    CREATE USER MaryUser FROM LOGIN MaryLogin;

    Create a firewall rule on Azure portal to allow access to the Azure SQL Database as explained here. Make sure port TCP 1433 is open from your computer.

    0 讨论(0)
  • 2021-02-01 03:43

    I figured out my problem. My password contained the character $ and this needs to be escaped out by using ` before the $.

    0 讨论(0)
  • 2021-02-01 03:47

    Did you tried to update your web.config file for connection string. This might be a reason which doesn't allow you to login to azure.

    0 讨论(0)
提交回复
热议问题