Bug with find unused variable and parameters

When I run 'Find Unused Variables and Parameters' you flag @ID as 'The value here is never used.'
DECLARE
@ID INT = ISNULL( ( SELECT MAX( BatchID ) FROM dbo.RDIBatch ), 1 );

DBCC CHECKIDENT ( RDIBatch, RESEED, @ID );
Tagged:

Comments

Sign In or Register to comment.