sql azure 语法_Azure虚拟机上的Azure SQL数据库与SQL Server

sql azure 语法

介绍 (Introduction)

There are two main options in Azure to handle SQL databases:

Azure中有两个主要选项可以处理SQL数据库:

  • Azure SQL Database.

    Azure SQL数据库。
  • SQL Server on Azure VM.

    Azure VM上SQL Server。

In this chapter, we will talk about the advantages and disadvantages of each option.

在本章中,我们将讨论每个选项的优缺点。


The first option is a single Database in the Cloud that can be administered using the Azure Portal or other tools like SQL Server Management Studio (SSMS), PowerShell or third party tools. For more information about installing and connecting to an Azure SQL Database, refer to our article Microsoft Azure, our first steps to migrate data.

第一个选项是云中的单个数据库,可以使用Azure门户或其他工具(例如SQL Server Management Studio (SSMS), PowerShell或第三方工具)进行管理。 有关安装和连接到Azure SQL数据库的更多信息,请参阅我们的文章Microsoft Azure,这是迁移数据的第一步

The second option is a Virtual Machine (VM) in Azure. It is like a local SQL Server, but it is a Virtual Machine stored in the Cloud and that is usually controlled using the RDP client. This option is very easy to install and Administer is you already have SQL Server Experience. For more information about VM machines refer to our article How to migrate your database to an Azure Virtual Machine.

第二个选项是Azure中的虚拟机(VM)。 它就像本地SQL Server,但它是存储在云中的虚拟机,通常使用RDP客户端进行控制。 此选项非常易于安装,如果您已经具有SQL Server经验,则可以进行管理。 有关VM计算机的详细信息,请参阅我们的文章如何将数据库迁移到Azure虚拟机。

入门 (Getting started)

价格 (Prices)

First, let’s talk about prices. This article was made on February 2016. It is possible that the prices will change over the time, but it is a good start point.

首先,让我们谈谈价格。 本文发表于2016年2月。价格可能会随时间变化,但这是一个很好的起点。

Let’s check a table with some prices (for a complete table of prices review the references).

让我们检查一个包含一些价格的表(有关价格的完整表,请查看参考文献)。

SQL Server on Azure VM Azure SQL Database
1 Cores, 24 USD per month, Web Edition 2 GB Database, 5 DTUs, 5 USD per month.
16 Cores, 95 USD per month, Web Edition. 250 GB Database, 50 DTUs, 75 USD per month.
16 Cores, 1190 USD per month, Standard Edition 500 GB Database, 250 DTUs, 930 USD per month.
16 Cores, 4464 USD per month, Enterprise Edition 1 TB Database, 1750 DTUs, 7000 USD per month.
Azure VM上SQL Server Azure SQL数据库
1核,每月24 USD ,网络版 2 GB数据库,5个DTU,每月5美元
16版核心,每月95美元 ,网络版。 250 GB数据库,50个DTU,每月75美元
16核,每月1190 USD ,标准版 500 GB数据库,250 DTU,每月930 USD
16核,每月4464 USD ,企业版 1 TB数据库,1750 DTU,每月7000 USD

As you can see, the prices depend on different components.

如您所见,价格取决于不同的组件。

The cheapest option is a one CORE VM machine with SQL Server web edition. The price is 24 USD per month and 0.032 USD per hour.

最便宜的选择是一台带有SQL Server Web版的CORE VM。 价格是每月24 USD和每小时0.032 USD。

By the other hand, the cheapest option for an Azure SQL databases is 5 USD per month.

另一方面,Azure SQL数据库的最便宜选择是每月5美元。

In SQL Server on Azure VMs, the price depends on the number of Cores and the SQL Edition. The more cores, the more expensive it is. In Azure VM, you can have the SQL Enterprise Edition, SQL Standard Edition and SQL Web Edition. The Enterprise edition is the most expensive and it includes several features not included in the Standard or Web edition. The Web edition is the cheapest option. The Standard edition support maximum 16 cores and the Enterprise version can support any number of cores. The Standard edition is limited to 128 GB of memory and the Web edition 64 GB. The Enterprise edition has no limit.

在Azure VM上SQL Server中,价格取决于Cores和SQL Edition的数量。 内核越多,价格就越高。 在Azure VM中,您可以拥有SQL Enterprise Edition,SQL Standard Edition和SQL Web Edition。 企业版是最昂贵的,它包括标准版或Web版中未包含的一些功能。 网络版是最便宜的选择。 标准版最多支持16个核心,而企业版可以支持任意数量的核心。 标准版限于128 GB的内存,而Web版限于64 GB。 企业版没有限制。

There are several limitations of each SQL Edition. For a complete list of features supported by each SQL Server Edition, refer the Features Supported by the Editions of SQL Server.

每个SQL Edition都有一些限制。 有关每个SQL Server版本支持的功能的完整列表,请参阅SQL Server版本支持功能。

In Azure SQL Database, the prices depend on the Database Size and the DTUs. The DTU is the Data Transaction Unit, which measures the number of transactions supported per second in stress conditions.

在Azure SQL数据库中,价格取决于数据库大小和DTU。 DTU是数据事务处理单元,它测量压力条件下每秒支持的事务处理数量。

For more information about DTUs, read the SQL Azure Database Benchmark Overview.

有关DTU的更多信息,请阅读SQL Azure数据库基准概述。

To summarize the prices, we can say that we can get cheaper prices in SQL Azure Databases. If you just need to store the information of your app in a Database and you do not want to worry about the Database Administration, the SQL Azure Database is the best option.

总结价格,可以说我们可以在SQL Azure数据库中获得更便宜的价格。 如果您只需要在数据库中存储应用程序的信息,而又不想担心数据库管理,那么SQL Azure数据库是最佳选择。

We cannot forget that there is a new option for SQL Azure Databases named elastic database, which is in Preview version. This is a new feature to handle multiple Azure SQL Databases in a Pool to simplify the administration if several databases are required. We will explain this feature on detail in another article.

我们不能忘记,SQL Azure数据库有一个名为“弹性数据库”的新选项,它是预览版。 这是一项新功能,用于处理池中的多个Azure SQL数据库,以简化管理(如果需要多个数据库)。 我们将在另一篇文章中详细解释此功能。

哪个更容易学习? (Which one is easier to learn?)

The SQL Azure Database is easier to use and administer.

SQL Azure数据库更易于使用和管理。

The VM Machine in Azure is as difficult as a local machine. You need to work on the OS Administration as well as the traditional DBA tasks.

Azure中的VM计算机与本地计算机一样困难。 您需要处理OS Administration以及传统的DBA任务。

By the other hand, the SQL Azure Database is a simple database. You do not need to worry about the Administration of the Database. If want to improve the performance, you just need to pay more and that is all.

另一方面,SQL Azure数据库是一个简单的数据库。 您无需担心数据库的管理。 如果要提高性能,您只需要付出更多就可以了。

哪一个更安全? (Which one is more secure?)

The VM Machine in Azure is more secure than the SQL Azure Database because you can configure and restrict the IPs that access to the VM Machines. The passwords can be protected using the OS security.

Azure中的VM计算机比SQL Azure数据库更安全,因为您可以配置和限制访问VM计算机的IP。 可以使用操作系统安全性来保护密码。

In SQL Azure Database, if you have the credentials you can basically stole all the information from any device by default. When you need to connect with other tools, it is secure and it requires certificates or other secure tools, but the Web Portal can be accessed anytime and anywhere.

在SQL Azure数据库中,如果拥有凭据,则默认情况下基本上可以从任何设备中窃取所有信息。 当您需要与其他工具连接时,它是安全的,并且需要证书或其他安全工具,但是可以随时随地访问Web Portal。

可以通过任何设备管理哪一个? (Which one can be administered from any device?)

What is amazing about Azure SQL Database is that you can create and administer your database from your iPhone, your Android or any other similar device. If you have a browser, you can create, delete or administer your database. The connection is a straightforward process.

Azure SQL数据库的惊人之处在于,您可以从iPhone,Android或任何其他类似设备创建和管理数据库。 如果使用浏览器,则可以创建,删除或管理数据库。 连接是一个简单的过程。

The VM Machine in Azure can be accessed from any RDP (Remote Desktop Protocol) Client. It can be a Machine with the Windows OS installed (recommended), a Mac or any OS with RDP installed. However, configuring RDP in non-Window OSs can be an unpleasant experience.

可以从任何RDP(远程桌面协议)客户端访问Azure中的VM计算机。 它可以是安装了Windows操作系统(推荐)的计算机, Mac或安装了RDP的任何操作系统。 但是,在非Window操作系统中配置RDP可能会令人不快。

每个选项支持的最大数据库大小是多少? (What is the maximum database size supported by each option?)

The maximum size supported in Azure SQL Database is 1 TB. In the virtual machines in Azure, the maximum size in VMs can be found in this link: Sizes for Virtual Machines.

Azure SQL数据库支持的最大大小为1 TB。 在Azure的虚拟机中,可以在以下链接中找到VM的最大大小: 虚拟机的大小。

结论 (Conclusion)

In this article, we explained the advantages and disadvantages of each option. To resume, if you already have an infrastructure and a SQL team that can handle the VM machines in Azure, it is a good option the work with Virtual Machines.

在本文中,我们解释了每种选择的优点和缺点。 要恢复,如果您已经具有可以处理Azure中VM机器的基础结构和SQL团队,那么使用虚拟机是一个不错的选择。

The Azure SQL is the best option if you have a new application and you do not have many resources or time to administer a SQL Server Database and you have a low budget, this option is the best

如果您有一个新的应用程序,并且没有太多的资源或时间来管理SQL Server数据库,并且预算较低,则Azure SQL是最佳选择。

翻译自: https://www.sqlshack.com/azure-sql-database-vs-sql-server-on-azure-virtual-machines/

sql azure 语法

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值