if (@salesrepcode = '765') begin
select salesrepcode from orderheader where jobnumber=@jobnumber
@salesrepcode= salesrepcode
end
Msg 102, Level 15, State 1, Procedure fs_enterpriseupdate, Line 62
Incorrect syntax near '@salesrepcode'.
can't seem to figure out what is wrong.
select salesrepcode from orderheader where jobnumber=@jobnumber
@salesrepcode= salesrepcode
end
Msg 102, Level 15, State 1, Procedure fs_enterpriseupdate, Line 62
Incorrect syntax near '@salesrepcode'.
can't seem to figure out what is wrong.