Microsoft SQL Server 2014 Unleashed
by Ray Rankins, Paul Bertucci, Chris Gallelli, Alex T. Silverstein
Deferred Name Resolution
In SQL Server 2014, the objects referenced within a stored procedure do not have to exist at the time the procedure is created. SQL Server creates the stored procedure and the references to missing objects are validated when the stored procedure is executed. No error or warning message is issued about the missing objects when the stored procedure is created. One exception is when a stored procedure references another stored procedure that doesn’t exist. In that case, a warning message is issued, but the stored procedure is still created (see Listing 25.7). The other exception is when the stored procedure references an object through a linked server connection. The linked server must exist and be accessible, as well as ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access