借助 Cloud SQL,您可以将那些必不可少而又往往十分耗时的例行任务(例如,应用补丁程序和更新、管理备份及配置复制功能)交由 Google 处理,从而让您可以集中精力来构建出色的应用。此外,由于我们使用标准传输协议,因此您可以随时随地从几乎任何应用连接到 Cloud SQL。
Cloud SQL 可提供哪些数据库版本?如何管理更新?
Cloud SQL for SQL Server 支持以下版本的 SQL Server:SQL Server 2017 Standard、SQL Server 2017 Enterprise、SQL Server 2017 Express、SQL Server 2017 Web、SQL Server 2019 Standard(默认)、SQL Server 2019 Enterprise、SQL Server 2019 Express 和 SQL Server 2019 Web。
如果数据将移出物理边界,脱离 Google 或 Google 授权代理方的控制范围,Google 会在一个或多个网络层对传输中的所有数据进行加密和身份验证。如果传输中的数据位于物理边界内部,可由 Google 或 Google 授权代理方掌控,我们通常会对这些数据进行身份验证,但默认情况下可能不会进行加密。如果您使用实例的公共 IP 地址连接到该实例,请使用 SSL/TLS 证书,以确保数据在传输期间安全无虞。您可以根据威胁模型选择要应用哪些额外的安全措施。例如,您可以为可用区内的 Cloud SQL 连接配置 SSL。
一般来说,选择具有更多 RAM 和 CPU 的较大规模实例可以提升数据库的性能。这种做法能够提升许多涉及大量计算的查询(例如涉及联接、ORDER BY 或 GROUPING 的查询)的性能,但仅涉及到个别行的更新操作的性能不会受到太大影响。
但是,实例的大小越大,操作延迟时间就越长。如需详细了解实例大小和价格,请参阅价格页面。
实例使用费用是怎样计算的?
我们按照您的实例处于开启状态的时间对您收取费用(按分钟)。
另外,Microsoft SQL Server 许可要求对实例上的每个虚拟 CPU 分配核心许可,并且每个实例至少有四个核心。对于 vCPU 数量不到 4 个的实例,将根据这些要求按 4 倍的 SQL Server 许可费率收费。对于 vCPU 数量为 4 个或以上的实例,您需要付费的 SQL Server 许可数与 vCPU 数相等。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Cloud SQL for SQL Server FAQ\n\n[MySQL](/sql/docs/mysql/faq \"View this page for the MySQL database engine\") \\| [PostgreSQL](/sql/docs/postgres/faq \"View this page for the PostgreSQL database engine\") \\| SQL Server\n\n- About\n - [What is Cloud SQL?](#whatissql)\n - [What are the benefits of using Cloud SQL?](#benefits)\n - [Which database versions are available with Cloud SQL?\n How are updates managed?](#version)\n - [Does Cloud SQL support all database features?](#supportmysqlfeatures)\n - [Are there any size or QPS limits?](#sizeqps)\n - [How can I be notified when there are any changes to Cloud SQL?](#notifiedofchanges)\n - [How do I report a bug, request a feature, or ask a question?](#requestfeature)\n- Getting Started\n - [Why does my new instance with no data show disk space used?](#empty)\n- Data Storage, Replication, and Authentication\n - [Where is my data stored?](#data_location)\n - [Should I use solid-state drives (SSD) or\n hard disk drives (HDD) for storage?](/sql/docs/sqlserver/choosing-ssd-hdd)\n - [What is a zone?](#what_is_a_zone)\n - [What are the limits on storage?](#storage_limits)\n - [How is my data replicated?](#replication)\n - [How does Cloud SQL failover work?](#failover)\n - [Is my data encrypted?](#encryption)\n - [How is encryption managed for data at rest?](#encryption-manage-rest)\n - [How is encryption managed for data in transit?](#encryption-manage-transit)\n - [What kind of read replicas can I create?](#rr_kinds)\n - [Does Cloud SQL for SQL Server integrate with Managed Service for\n Microsoft Active Directory?](#ad)\n- Backup and Recovery\n - [How do I recover an instance?](#backups_how)\n - [How much do backups cost?](#backups_cost)\n - [Can I access automated backups older than seven days?](#backups_access)\n - [When do I use external versus cross-region replication for\n region failure protection?](#crr-dr)\n- Managing Your Instances\n - [Which actions cause Cloud SQL instances to restart?](#restart)\n - [How long are instances shut down during restart?](#shutdown)\n - [Can I make my database larger or smaller?](#changetiers)\n - [Can I upgrade and downgrade vCPUs?](#vcpus)\n - [Do I need to use the Google Cloud console to manage Cloud SQL?](#apisconsole)\n - [How can I reclaim the space used by temporary files?](#reclaimingspacetemp)\n - [Can I import or export a specific database?](#importexportdatabases)\n - [Can I import or export a CSV file?](#importexportcsvfile)\n - [Do I need a Cloud Storage account to import or export data from an instance?](#googlestorage)\n - [If I delete my instance, can I reuse the instance name?](#reuse)\n - [What level of transaction isolation does Cloud SQL\n provide?](#transaction-isolation)\n - [How can I protect my instance from accidental deletion?](#instance-protection)\n- Insights\n - [Why can't I find the sample query plan in Insights?](#insights-query-plan)\n- Pricing and Billing\n - [How can I try out Cloud SQL?](#can_I_try)\n - [How many instances can I create in a project?](#number_instances)\n - [What size database instance do I need? How much RAM?](#what_size_database)\n - [How is use of my instance calculated?](#how_usage_calculated)\n - [How is storage calculated?](#how_storage_calculated)\n - [How can I see how much I will be charged?](#how_much)\n - [What happens when my instance reaches the allowed size?](#reaches_max_size)\n - [Why is my instance suspended?](#why_suspended)\n - [Why was my instance deleted?](#why_deleted)\n - [How can I cancel my Cloud SQL account?](#cancelsqlaccount)\n - [How do I disable billing?](#disable_billing)\n- Using Cloud SQL with App Engine\n - [Can I connect from App Engine to a SQL Server\n instance?](#gaeconnect-sqlserver)\n - [Can my App Engine application in the US access my Cloud SQL\n instance in the EU (and the other way around)?](#location)\n - [Which Google Cloud database service is right for me?](#choice)\n - [Do I need to install a local database server to use the App Engine Development Server?](#installmysql)\n - [What languages can I use to access my instance?](#languages)\n - [Can I use Django with Cloud SQL?](#django)\n - [Which placeholders can I use in my Python query string?](#formatcode)\n - [How do I manage connections?](#connections)\n - [What does a SQLException with message of \"Invalid connection ID\" mean?](#invalidconnectioniderror)\n - [Can I access my Cloud SQL instance programmatically outside of App Engine?](#externaldev)\n\nAbout\n-----\n\nWhat is Cloud SQL?\n: Cloud SQL is a service that delivers fully managed SQL databases in the cloud.\n Cloud SQL provides PostgreSQL, SQL Server, and MySQL databases.\n\nWhat are the benefits of using Cloud SQL?\n: Cloud SQL lets you hand\n off to Google the mundane, but necessary and often time consuming tasks --- like applying patches and\n updates, managing backups and configuring replications --- so you can put your focus on building great\n applications. And because we use standard wire protocols, you can connect from just about any\n application, anywhere.\n\nWhich database versions are available with Cloud SQL? How are updates managed?\n:\n\n: Cloud SQL for SQL Server supports these editions of SQL Server: SQL Server 2017\n Standard, SQL Server 2017 Enterprise, SQL Server 2017 Express, SQL Server 2017 Web,\n SQL Server 2019 Standard, SQL Server 2019 Enterprise, SQL Server 2019 Express,\n SQL Server 2019 Web, SQL Server 2022 Standard (default), SQL Server 2022 Enterprise,\n SQL Server 2022 Express, and SQL Server 2022 Web.\n\n Minor version updates are deployed as part of scheduled maintenance, with no further action\n required on your part. For more information about updates, see\n [Overview of maintenance on Cloud SQL instances](/sql/docs/sqlserver/maintenance).\n\n To see the current version of your instance, go to the\n [Google Cloud console](https://console.cloud.google.com/), click the instance name to open the\n **Instance details** page. Or, you can use the `gcloud sql instances describe`\n command.\n\nDoes Cloud SQL support all database features?\n:\n Cloud SQL supports most of the common features of SQL Server. For unsupported features, see\n [SQL Server features unavailable for Cloud SQL](/sql/docs/sqlserver/features#sqlserver-unavailable).\n\nAre there any size or QPS limits?\n: There are no queries per second (QPS) limits for Cloud SQL instances. For information about\n connection, size, and App Engine-specific limits, see\n [Quotas and Limits](/sql/docs/sqlserver/quotas).\n\nHow can I be notified when there are any changes to Cloud SQL?\n: You can sign up for the [google-cloud-sql-announce](https://groups.google.com/group/google-cloud-sql-announce)\n forum where we post announcements and news about Cloud SQL.\n\nHow do I report a bug, request a feature, or ask a question?\n: You can report bugs and request a feature on our\n [google-cloud-sql-discuss](https://groups.google.com/forum/#!forum/google-cloud-sql-discuss)\n group. You can ask a question in\n [Stack Overflow](http://stackoverflow.com/questions/tagged/google-cloud-sql).\n For other support options, see the [Cloud SQL Support](/sql/docs/sqlserver/support) page.\n[Back to top](#top)\n\nGetting Started\n---------------\n\nWhy does my new instance with no data show disk space used?\n: Cloud SQL and the database both use some space for system files and metadata when\n your instance is created."]]