Home Forums SQL Server 2008 SQL Server 2008 - General Must declare the scalar variable - help required RE: Must declare the scalar variable - help required
David Burrows
SSC Guru
Points: 65138
More actions
January 24, 2011 at 6:44 am
#1277166
try
exec sp_executesql @ssql,N'@deldate varchar(10) OUTPUT',@deldate OUTPUT
instead of
exec(@ssql)
Far away is close at hand in the images of elsewhere.Anon.