I have this simple code
declare @a int, @b int select @a=sum(1), @b=1 from syscolumns where 1 = 2 select @@rowcount, @a, @b
The result is :