The topic describes the DF214 T-SQL code analysis rule.
BEST PRACTICE
The schema name for a table or view is not specified.
It is recommended to explicitly specify the schema when referencing a stored table or view.
Explicitly specifying the schema when referencing a table or view helps improve query performance, avoids ambiguity, and ensures that the correct object is accessed, especially in databases with multiple schemas. It also improves code clarity and maintainability.
SELECT
id
FROM DemoTable
GO
SELECT
id
FROM dbo.DemoTable
GO