![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am getting error when I run the following statement declare @a nvarchar(255) select @a = tblname from logtbl where tblname like 'orders%' and logtbl.logdate > getdate() - .5 update @a set @a.log_id = l.log_id from @a , logtbl l where l.logdate > getdate() - .5 l.tblname like 'orders%' Server: Msg 137, Level 15, State 2 Must declare the variable '@a'. Plz.help Steve |
![]() |
| Thread Tools | |
| Display Modes | |
| |