Home Forums SQL Server 2008 SQL Server Newbies must declare the scalar variable! RE: must declare the scalar variable!
OTF
SSCertifiable
Points: 6054
More actions
May 9, 2013 at 6:59 am
#1613774
Your code run as a batch should work.
I think what you are probably doing is highlighting and running the statements individually which would reproduce the error you are getting.