Click or drag to resize

SA0216 : The TORN_PAGE_DETECTION option of ALTER DATABASE is deprecated. Use the PAGE_VERIFY option instead

The topic describes the SA0216 analysis rule.

Message

The TORN_PAGE_DETECTION option of ALTER DATABASE is deprecated. Use the PAGE_VERIFY option instead

Description

The rule checks T-SQL code and reports usages of the deprecated TORN_PAGE_DETECTION option inside ALTER DATABASE statements.

The syntax structure TORN_PAGE_DETECTION ON | OFF will be removed in a future version of SQL Server. Avoid using this syntax structure in new development work, and plan to modify applications that currently use the syntax structure. Use the PAGE_VERIFY option instead.

ALTER DATABASE AdventureWorks2012 TORN_PAGE_DETECTION ON

ALTER DATABASE AdventureWorks2012 PAGE_VERIFY TORN_PAGE_DETECTION

Scope

The rule has a Batch scope and is applied only on the SQL script.

Parameters

Rule has no parameters.

Remarks

The rule does not need Analysis Context or SQL Connection.

Categories

Deprecated Features

Additional Information
Example Test Script
SQL
1ALTER DATABASE AdventureWorks2012 
2SET SINGLE_USER, TORN_PAGE_DETECTION ON,PAGE_VERIFY TORN_PAGE_DETECTION

Analysis Results

 MessageLineColumn
1SA0216 : The TORN_PAGE_DETECTION option of ALTER DATABASE is deprecated. Use the PAGE_VERIFY option instead.217
See Also

Other Resources