DF214: The schema name for a table or view is not specified.
Last modified: May 28, 2025
The topic describes the DF214 T-SQL code analysis rule.
Category
BEST PRACTICE
Message
The schema name for a table or view is not specified.
Description
It is recommended to explicitly specify the schema when referencing a stored table or view.
Additional information
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.
Noncompliant code example
SELECT
id
FROM DemoTable
GO
Compliant solution
SELECT
id
FROM dbo.DemoTable
GO
Want to find out more?
Overview
Take a quick tour to learn all about the key benefits delivered by dbForge Studio for SQL Server.
All features
Get acquainted with the rich features and capabilities of the tool in less than 5 minutes.
Request a demo
If you consider employing this tool for your business, request a demo to see it in action.