I'm curious to understand please why @@rowcount equals 1 when no other statements are used? Is it because the actual SELECT @@ROWCOUNT
statement itself causes an update of @@rowcount?
CodePudding user response:
When running SSMS on windows, I indeed get OP's behaviour. By both doing an inputbuffer check and by using the profiler, it seems that when you open a new query window, ssms performs the following batch:
select @@spid;
select SERVERPROPERTY('ProductLevel');
This results in that default ace.