The topic describes the DF026 T-SQL code analysis rule.
BEST PRACTICE
The schema name for a procedure or function is not specified.
It is recommended to explicitly specify the schema when referencing a stored procedure or user-defined function.
Explicitly stating the schema name helps prevent potential conflicts with objects in different schemas and enhances code readability. Additionally, specifying the schema can improve query performance by reducing the need for the database engine to resolve object references.
SELECT * FROM DemoFunction()
DEClARE @result NVARCHAR(50)
EXEC @result = DemoProcedure
SELECT * FROM dbo.DemoFunction()
DEClARE @result NVARCHAR(50)
EXEC @result = dbo.DemoProcedure