

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 解決將 Microsoft SQL Server 遷移至 AWS 雲端後的連線錯誤
<a name="resolve-connection-errors-after-migrating-microsoft-sql-server-to-the-aws-cloud"></a>

*Premkumar Chelladurai，Amazon Web Services*

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

將 Windows Server 2008 R2、2012 或 2012 R2 上執行的 Microsoft SQL Server 遷移至 Amazon Web Services (AWS) Cloud 上的 Amazon Elastic Compute Cloud (Amazon 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`

此模式說明如何透過在作業系統 (OS) 和在 Windows Server 2008 R2、2012 或 2012 R2 上執行的 SQL Server 網路介面層級關閉 Windows Scalable Networking Pack (SNP) 功能來解決這些錯誤R2。

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

**先決條件**
+ Windows Server 的管理員權限。
+ 如果您使用 AWS Application Migration Service 做為遷移工具，則需要下列其中一個 Windows Server 版本：
  + Windows Server 2008 R2 Service Pack 1、2012 或 2012 R2
+ 如果您使用 CloudEndure Migration 做為遷移工具，則需要下列其中一個 Windows Server 版本：
  + 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>
+ [Amazon EC2](https://docs.aws.amazon.com/ec2/index.html) – Amazon Elastic Compute Cloud (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>


| 任務 | Description | 所需的技能 | 
| --- | --- | --- | 
| 在作業系統層級關閉 SNP 功能。 | [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/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_tw/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)