When we create a stored procedure, we can create some variable as follows:
DECLARE @UserCount INT
We use this variable in the stored procedure. But we do not have this variable at the end of the stored procedure. We have cursors with DEALLOCATE, but we do not write ant strings for the variables that we create.
Another confusion - we create tables and call them "@table"
When and how does Sql Server have such variables?
source
share