Hi all.
I'm having a hard time here. I know this is kludgy, but I'm trying to make it work.
I have a DTS package on SQL Server 2000, attempting to update data in an Oracle 9.2 database.
I've already had to unwillingly use the Exec statement along with the OpenQuery statement, which I hate because it seems archaic, like this:
I replaced exec with print for debugging purposed and the generated SQL looked fine. I'm getting this error:
can anybody help me? i removed all fields one at a time in an attempt to determine which was causing the issue. each time the error reported the very last SET clause as having the error.
please help, i'm at a complete loss. i know, i copied/pasted/eliminated some code. let me know if you want to see the whole thing.
thanks,
cory
*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
I'm having a hard time here. I know this is kludgy, but I'm trying to make it work.
I have a DTS package on SQL Server 2000, attempting to update data in an Oracle 9.2 database.
I've already had to unwillingly use the Exec statement along with the OpenQuery statement, which I hate because it seems archaic, like this:
Code:
select @strSql = 'UPDATE openquery(KINTANA, ...)
SET ...
WHERE PARAMETER1= ''' + cast(@SUB_ID as nvarchar(5)) + ''''
exec (@strSql)
I replaced exec with print for debugging purposed and the generated SQL looked fine. I'm getting this error:
Code:
OLE DB provider 'MSDAORA' reported an error.
[OLE/DB provider returned message: One or more errors occurred during processing of command.]
[OLE/DB provider returned message: ORA-00904: "PARAMETER7": invalid identifier
]
OLE DB error trace [OLE/DB Provider 'MSDAORA' IRowsetChange::SetData returned 0x80004005: ].
can anybody help me? i removed all fields one at a time in an attempt to determine which was causing the issue. each time the error reported the very last SET clause as having the error.
please help, i'm at a complete loss. i know, i copied/pasted/eliminated some code. let me know if you want to see the whole thing.
thanks,
cory
*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]