Improve error feedback for table variable declaration that refer to non-existent sequences
Executing
DECLARE @t TABLE(ID INT NOT NULL DEFAULT NEXT VALUE FOR dbo.MySequence);
When dbo.MySequence does not exist produces "A severe error occurred on the current command", rather than "invalid object name dbo.MySequence". This does work correctly for regular tables (CREATE TABLE).
1
vote
