Is it possible to retrive data from AS/400 DB2 with a stored procedure and insert the data in a temporary table? The reason I want to do this is that I have some data in SQL2000 and some data in DB2. Then I want to process the data from DB2 and combine it with the data in SQL2000
If you have an ODBC driver for the AS/400 DB2, you can create a linked server to it from SQL Server. Then you'll be able to query it using the OPENQUERY syntax (check BOL for details).