I have a link server from SQL Server 2000 Standard Edition SP3 running on Windows 2000 SP4 to Oracle 9i. Selecting Oracle data works fine using the OPENQUERY. However, inserting data from SQL Server into Oracle errors with out of memory issue. The statement is similar to:
INSERT INTO ORACLE_LINK..DDPCS.EWF_SERVERS
SELECT COLUMN1, COLUMN2, COLUMN3 FROM SQL_SERVER_TABLE
WHERE DATE_COLUMN > '06-02-2006'
AND DATE_COLUMN <= '06-04-2006'
Is there something wrong with this code? Is there a better way to write this? Is there something within SQL Server that I may tune to make the code work more efficiently?