Doing some maintenance on an old report created by someone a long time ago. I noticed that the data source for the report is a stored procedure. The sproc call is as follows:
EXEC someStoredProc;1
I have never seen "1" before. Just curious, what the hell is this? Unable to find documentation online. If I switch “1” to any other number, SQL throws an error “cannot find the stored procedure“ someStoredProc. ”But return it to“ 1 ”and it works. It does not seem to affect the output. What is this thing?
I noticed that I can put "; 1" after any stored procedure, and it looks, apparently, the same as without it.
If someone can clear this secret for me - thanks!
source share