

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 解决将 Microsoft SQL Server 迁移至 Amazon Web Services Cloud 后出现的连接错误
<a name="resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud"></a>

*Premkumar Chelladurai，Amazon Web Services*

## Summary
<a name="resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud-summary"></a>

将在 Windows Server 2008 R2、2012 或 2012 R2 上运行的微软 SQL Server 迁移到亚马逊网络服务 (AWS EC2) 云上的亚马逊弹性计算云 (亚马逊) 实例后，与 SQL Server 的连接失败并出现以下错误： 
+ `[Microsoft][ODBC SQL Server Driver][DBNETLIB] General Network error`
+ `ERROR [08S01] [Microsoft][SQL Native Client]Communication link failure. System.Data.SqlClient.SqlException: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)`
+ `TCP Provider: The semaphore timeout period has expired`

此模式描述了如何通过在 Windows Server 2008 R2、2012 或 2012 R2 上运行的 SQL Server 的操作系统 (OS) 和网络接口级别关闭 Windows 可扩展网络包 (SNP) 功能来解决这些错误。

## 先决条件和限制
<a name="resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud-prereqs"></a>

**先决条件**
+ Windows 服务器管理员权限。
+ 如果您使用 AWS Application Migration Service 作为迁移工具，则需要以下 Windows Server 版本之一：
  + Windows Server 2008 R2 Service Pack 1、2012 或者 2012 R2
+ 如果您使用 CloudEndure 迁移作为迁移工具，则需要以下 Windows 服务器版本之一：
  + Windows Server 2003 R2 Service Pack 3、2008、2008 R2 Service Pack 1、2012 或者 2012 R2

## 工具
<a name="resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud-tools"></a>
+ [亚马逊 EC2](https://docs.aws.amazon.com/ec2/index.html) — 亚马逊弹性计算云 (Amazon EC2) 在 AWS 云中提供可扩展的计算容量。您可以根据需要使用 Amazon EC2 启动任意数量或数量的虚拟服务器，也可以进行横向扩展或扩展。 
+ [Windows Server](https://docs.microsoft.com/en-us/windows-server/) – Windows Server 是一个用于构建由互联应用程序、网络和 Web 服务组成的基础设施的平台。

## 操作说明
<a name="resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud-epics"></a>

### 在操作系统和弹性网络接口级别关闭 SNP 功能
<a name="turn-off-snp-features-at-the-os-and-elastic-network-interface-levels"></a>


| Task | 说明 | 所需技能 | 
| --- | --- | --- | 
| 在操作系统级关闭 SNP 功能。 | [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/patterns/resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud.html) | AWS 管理员、AWS 系统管理员、迁移工程师、云管理员 | 
| 在弹性网络接口级别关闭 SNP 功能。 | [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/patterns/resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud.html) | AWS 管理员、云管理员、AWS 系统管理员 | 

## 相关资源
<a name="resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud-resources"></a>
+ [如何对 RSS 和 NetDMA 等高级网络性能功能进行故障排除](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/troubleshoot-network-performance-features-rss-netdma)