How can we help you today? How can we help you today?

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 );
Ozzie
0

Comments

1 comment

  • FredericoJ
    Hi @Ozzie,

    Thank you for reporting this. I've managed to reproduce the problem locally and I've created a bug (reference: SP-6459) to track it.

    Best regards,

    Frederico
    FredericoJ
    0

Add comment

Please sign in to leave a comment.