SA0196 : Deprecated use of DROP INDEX with two-part index name syntax |
![]() |
The topic describes the SA0196 analysis rule.

Deprecated use of DROP INDEX with two-part index name syntax

The rule checks DROP INDEX statements for using the backward compatible syntax with two-part index name.

The backward compatible syntax is deprecated and it is recommended to replace it with `index_name ON table_name` syntax.

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

Rule has no parameters.

The rule does not need Analysis Context or SQL Connection.


Design Rules, Deprecated Features, Bugs

There is no additional info for this rule.

SQL
1DROP INDEX Test.Greeting.IX_Greeting_GreetingId 2 3DROP INDEX IX_Greeting_GreetingId ON Test.Greeting, IX_Greeting_GreetingId ON Test.Greeting |

SQL
1DROP INDEX IX_Greeting_GreetingId ON [Test].[Greeting]; 2 3DROP INDEX IX_Greeting_GreetingId ON Test.Greeting, IX_Greeting_GreetingId ON Test.Greeting |

Message | Line | Column | |
---|---|---|---|
1 | SA0196 : Deprecated use of DROP INDEX with two-part index name syntax. | 2 | 0 |
