Home Forums SQL Server 2008 SQL Server 2008 - General Must declare the scalar variable "@User". RE: Must declare the scalar variable "@User".
Lynn Pettis
SSC Guru
Points: 442467
More actions
October 17, 2013 at 3:45 am
#1659185
The error message is telling you exactly what you need to do. You need to declare the variable @User before you use it in your query.