Ok, that does get me closer, however the SalesOrderLine table is still giving me trouble.
1) I cannot run the following statement from SQL Server:
QODBC2...sp_optimizeupdatesync Class
It gives the following error:
Msg 7212, Level 17, State 1, Line 1 Could not execute procedure 'sp_optimizeupdatesync' on remote server 'QODBC2'.
I can run the same command in VB Demo, which is good to know, but I need to be able to run it as part of my SSIS script. Any ideas as to what I'm doing wrong?
2) Using the workaround above (updating salesorderline via the sp in VB Demo), it reads my table very very quickly (20,000 rows in about 45 seconds. However, it throws an error after it finishes reading:
[Source - Query 1 1 [1]] Error: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper90 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer90[] buffers, IntPtr ppBufferWirePacket)
[DTS.Pipeline] Error: The PrimeOutput method on component "Source - Query 1 1" (1) returned error code 0x80004003 . The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
[DTS.Pipeline] Error: Thread "SourceThread0" has exited with error code 0xC0047038.
[DTS.Pipeline] Error: Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.
[DTS.Pipeline] Error: Thread "WorkThread0" has exited with error code 0xC0047039.
Task Data Flow Task - SalesOrderLine failed |