Skip to content

EX0004 : Find identifier references inside the T-SQL script

The rule scans T-SQL code for references to a specific identifier, as defined by the rule parameters. The rule can be used as a base rule for creating variants that identify references to particular identifiers in code.

For example, the following query references the Sales table, which matches the IdentifierName rule parameter:

SELECT * FROM Sales WHERE SalesDate = @StartDate;

This query will trigger a rule violation.

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

NameDescriptionDefault Value
IdentifierNameIdentifier name. The parameter is required.
CaseSensitiveSpecifies if the identifier name is case sensitive.no

The rule does not need Analysis Context or SQL Connection.

Not configured.

Explicit Rules

There is no additional info for this rule.

No violations found.

Analysis Rules