When you are using the Microsoft OLE DB Provider for DB2 (DB2OLEDB) that is included with Host Integration Server 2000 to do an INSERT into a DB2 table from a SQL linked server and you are doing this by SELECTing data from a Microsoft SQL Server table by using either a four-part naming convention or OPENQUERY, an access violation (AV) occurs.
This problem can occur when the INSERT contains more than 145 columns.
SQL Server may generate a stack dump and write out information to the ERRORLOG file and a symptom dump file when the access violation occurs. The beginning of the stack dump in the ERRORLOG file may appear similar to the following:
Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL\log\SQL00097.dmp
2001-07-18 13:35:24.59 spid54 Error: 0, Severity: 19, State: 0
2001-07-18 13:35:24.59 spid54 SqlDumpExceptionHandler: Process 54 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION.
SQL Server is terminating this process..
Short Stack Dump
752150B1 Module(MSEIDRDA+000150B1) (std::deque<Xo2Db2Token,std::allocator<Xo2Db2Token> >::erase+00000321) 11E04010 Module(UNKNOWN+00000000)
NOTE: The INSERT into the DB2 table actually completes successfully even though the access violation occurs.