Execute SQL Task - SSIS -
07-18-2006
, 04:30 PM
Hi,
I have the following statement in execute SQL Task....
DECLARE @DATE VARCHAR(30)
SELECT @DATE=VALUE
FROM _PARAMETERS
WHERE NAME='RTB_DATA_DATE'
SELECT 'SELECT ..... from table_Name' <very long statement to be
executed on oracle DB>
I assign this to a user defined variable and then execute it using OLE
DB data source. The problem is that the SELECT 'SELECT.... ' command
is longer than 8000 characters due to which its getting truncated and
not being executed. In SQL Server 2000 I knew how to get around it by
using ActiveX scripts..... what should I do here??
This statement needs to run everyday for the last three days of
data.... and load data from oracle to local SQL Server. I update date
value in _PARAMETERS table and read it into the select statement.
Any help is greatly appreciated.
Zomer. |