If you run a select statement in the editor, such as:
SELECT COUNT (1) TOTALCOUNT
FROM dbo.accounts AS C
WHERE email = @iCLIENT_GRP_ID
There is an error which appears, because @iCLIENT_GRP_ID is not declared. If the following script is run, the it works ok:
declare @iCLIENT_GRP_ID int
set @iCLIENT_GRP_ID = 2
WORKAROUND:
Declare the variable, as described above.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center