In Microsoft SQL Server 2017, when you run a statement that includes datetime2 data type, you receive the following communication link error message: 

Error: 7884, Severity: 20, State: 5

Note This error also occurs when you use the sp_cursorfetch stored procedure to retrieve one or more deleted rows from the SQL Server database.


The fix for this problem is included in Cumulative Update 7 for SQL Server 2017.

About SQL Server 2017 builds

Each new build for SQL Server 2017 contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for SQL Server 2017.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.


Learn about the terminology Microsoft uses to describe software updates.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!