简体   繁体   English

如何删除 azure sql server 并只保留无服务器数据库副本

[英]how to delete azure sql server and leave only serverless database copy

I have an sql server (srv1) with an sql database (db1).我有一个带有 sql 数据库 (db1) 的 sql server (srv1)。 I want to go serverless.我想要无服务器。

I made a copy of db1 --> db2, and provisioned it to be serverless.我复制了 db1 --> db2,并将其配置为无服务器。

db2 is showing under srv1. db2 显示在 srv1 下。 Why?为什么? I asked it to be serverless.我要求它是无服务器的。

I want to delete this srv1 without erasing db2.我想在不擦除 db2 的情况下删除这个 srv1。

how can i do this?我怎样才能做到这一点?

Serverless is a compute tier for single databases in Azure SQL Database that automatically scales compute based on workload demand and bills for the amount of compute used per second. 无服务器是 Azure SQL 数据库中单个数据库的计算层,可根据工作负载需求和每秒使用的计算量自动扩展计算。 The serverless compute tier also automatically pauses databases during inactive periods when only storage is billed and automatically resumes databases when activity returns.无服务器计算层还会在仅对存储计费的非活动期间自动暂停数据库,并在活动恢复时自动恢复数据库。

It's a price tier and not really 'serverless'.这是一个价格层,而不是真正的“无服务器”。 And no matter which kind of Azure SQL database, all still need the Azure SQL Server to host it.而且无论是哪种 Azure SQL 数据库,都仍然需要 Azure SQL Server 来托管。

You made a copy of db1 in the same Azure SQL Server(I don't know how you created it), the new copy 'db2' will in the same server in usually.您在同一 Azure SQL Server 中制作了 db1 的副本(我不知道您是如何创建它的),新副本“db2”通常会在同一台服务器中。 Unless you create a .bacpac file of DB1 and import to other Azure SQL Server.除非您创建 DB1 的 .bacpac 文件并导入到其他 Azure SQL Server。

When you delete the Azure SQL Server, all the database will be deleted and we can not restore it.当您删除 Azure SQL Server 时,所有数据库都将被删除,我们无法恢复它。

You could scale the database to serverless price tier on Portal easily:您可以轻松地将数据库扩展到 Portal 上的无服务器价格层:

SQL Database-->Configure-->General Purpose-->Serverless: SQL数据库-->配置-->通用-->无服务器: 在此处输入图片说明

HTH.哈。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM