I'm trying to write a DTS script to transfer records from an Oracle database to SQL Server, using the Oracle OLEDB drivers. If I copy the whole table, then I have no problems. But if I try to parameterise the transfer, to only pick up records which have a certain value, then I get an 80040E51 error, and Google has been non-to-forthcoming about it. The query that fails is SELECT PERIODNO, ACCNO, ANALCODE1, ANALCODE2, COST_CODE_TYPE, COST_CODE, CREATED_DATE, STATUS, THIRD_PARTY_FLAG, NET_INV_VAL, VAT, GROSS_INV_VAL, LOCATION, MANAGER, PLACEMENT_TYPE, PLACEMENTSFROM OLMI_FIN_PERMWHERE PERIODNO > ?
so nothing too sophisticated, and as I said, it works fine if you comment out the where clause. It's just when I try to assign the parameter, by clicking on the Parameters button in the Transform Data Task Properties window, that it all goes Pete Tong.--David Keaveny