Bar*_*art 6 asp.net-mvc connection-string azure
我有 ASP.NET MVC 应用程序,我正在尝试连接到在 Azure 上迁移的 Azure SQL 数据库。我需要在 web.config 中设置我的连接字符串,但我不知道在哪里查找用户 ID 和密码。我在 Azure 中的 SQL Server 概述中发现了这样的模式:
Server=tcp...;User ID={your_username};Password={your_password}...;
Run Code Online (Sandbox Code Playgroud)
我发现有 username@server.com 并阅读了有关设置 Active Directory 管理员的信息。不幸的是,我是一名学生,并且拥有面向学生的 Azure,但我无法设置此类管理员。
我假设登录名将是数据库“mydb”的名称,密码是它的密码。不幸的是,它不起作用,当我登录到我的应用程序时,它会出现以下错误:
System.Data.SqlClient.SqlException: Login failed for user 'mydb'.
Run Code Online (Sandbox Code Playgroud)
我在论坛上没有找到答案,但如果有请告诉我。
提前感谢大家的帮助:)
| 归档时间: |
|
| 查看次数: |
3466 次 |
| 最近记录: |