SyntaxFix
Write A Post
Hire A Developer
Questions
This will work for original question asked:
DECLARE @Result INT; SELECT @Result = COUNT(*) FROM TableName WHERE Condition