![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi, I am trying to create an SQL task with the following declare @date smalldatetime select @date = convert(varchar(9),dbo.getwkendingfiledate(max(wee kending) ),112)from dbo.archive where ( loc_id = ?) INSERT INTO dbo.archive SELECT loc_id, filename @date, current_timestamp as DateCreated FROM dbo.anotherarchive WHERE (loc_id = ?) I get the error syntax or access violation error. Any ideas? |
![]() |
| Thread Tools | |
| Display Modes | |
| |