Hi @jiajun su
make sure the configuration for each session in SSMS is the same and please post the same screenshot for the last result (2016 AO) with active tab on the text results...
Are you 100% sure that all data on all machines is the same?
What about database compat level on those three databases? Are they the same?
That screenshot of 2016 AO doesn't mean that there are more results, it just shows you a resultset as a grid... as Yitzhak already stated, we need to see your DDL for the proc to understand the output... your results on 2005 and 2016 seems to be the same (0,0,1)... so there is at least one row as a result... and maybe it is just a difference in the optical view in SSMS and the text output says the same as on the other instances...
I hope my answer is helpful to you,
Your
Bjoern Peters
If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!