A T-SQL procedure is called without its schema

tx0/sql:schema-unqualified-procedure-callstrictwarningperformance/algorithmicdepth fastperformance

What it finds

EXEC usp_DoWork without a schema makes SQL Server look the procedure up in the caller's default schema first, which costs a lookup on every call and can find a different procedure for a user with another default schema.

From the rule's source, schema_unqualified_procedure_call.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:schema-unqualified-procedure-call" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:schema-unqualified-procedure-call shows the same in the terminal. Found a false positive? Report it.