MastermindSQL
Technical User
Could someone suggest me a way to check the underlying objects while compiling a stored procedure? For example if I have a code like this:
---------------------------
CREATE PROC dbo.FOO
AS
SELECT Col1, Col2
FROM dbo.NonExistingTable
RETURN
GO
---------------------------
In this case the [NonExistingTable] does not exist so I want to make compilation of this proc fail. Thank you in advance.
---------------------------
CREATE PROC dbo.FOO
AS
SELECT Col1, Col2
FROM dbo.NonExistingTable
RETURN
GO
---------------------------
In this case the [NonExistingTable] does not exist so I want to make compilation of this proc fail. Thank you in advance.