sql-server - 如何恢复我的 Azure SQL 数据库

标签 sql-server azure database-restore azure-sql-database

我已成功将 SQL Server 数据库迁移到 Azure SQL 数据库,并且已经使用了几个月,没有出现任何问题。今天,我尝试通过 SSMS 访问数据库,它要求我登录,以便将我的 IP 添加到防火墙(当我使用 DSL 时,这种情况会定期发生)。我像往常一样登录并收到错误消息:

An error occurred while creating a new firewall rule.

The server you specified xxx.database.windows.net does not exist in any subscription in [email protected]. Either you have signed in with an incorrect account or your server was removed from subscription(s) in this account. Please check your account and try again.

所以我检查了我的 Azure 门户,果然,SQL 数据库不再在那里列出。但是,我的网站仍然运行并访问数据库。如何在不丢失数据的情况下将数据库重新放回我的帐户?

最佳答案

我今天也遇到了同样的问题。

enter image description here

我所做的非常简单。以下步骤可能会帮助您解决此错误。

  1. 登录到您的 Azure 门户
  2. 转到您的 SQL Server
  3. 单击“显示防火墙设置”

    enter image description here

  4. 使用您的客户端 IP 地址添加新规则 enter image description here

  5. 然后再次尝试登录

希望有帮助。

关于sql-server - 如何恢复我的 Azure SQL 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35954430/

相关文章:

sql - 如何在T-SQL中声明可为空的局部变量?

c# - 并行执行查询会导致更多时间 [SQL Server]

android - 在 SQLite DatabaseErrorHandler 中需要做什么

mysql - 为什么我无法在 MySQL 中创建表?

c# - 使用图形 api 在 Azure Active Directory 组中搜索用户

mysql - .SQL 和 .DUMP 文件之间的区别

sql - 数据库版本升级后子查询性能变差

sql-server - SQL Server float 据类型

azure - 将 DocumentDb 查询绑定(bind)到 Azure Functions 输入

python - 使用 REST api、端点发送云到设备消息 Azure IoT 中心