Aug 15, 2002 #1 gbfell Programmer Dec 11, 2001 27 US i need to run the following code in vb insert INTO ACOMPARTMENT select DB2ADMIN.ACOMPARTMENT.* from DB2ADMIN.ACOMPARTMENT IN 'DEMO'; its obviously not working because the 'demo' is the name of the DB2 ODBC datasource, not the path per say. how can i do this?
i need to run the following code in vb insert INTO ACOMPARTMENT select DB2ADMIN.ACOMPARTMENT.* from DB2ADMIN.ACOMPARTMENT IN 'DEMO'; its obviously not working because the 'demo' is the name of the DB2 ODBC datasource, not the path per say. how can i do this?
Aug 15, 2002 #2 vb5prgrmr Programmer Jul 5, 2002 3,622 US I believe (could be wrong) that all you need to do is remove the "IN DEMO" from your query string insert INTO ACOMPARTMENT select DB2ADMIN.ACOMPARTMENT.* from DB2ADMIN.ACOMPARTMENT IN 'DEMO' insert INTO ACOMPARTMENT select DB2ADMIN.ACOMPARTMENT.* from DB2ADMIN.ACOMPARTMENT It's just a guess (w/info given) but worth a try. Upvote 0 Downvote
I believe (could be wrong) that all you need to do is remove the "IN DEMO" from your query string insert INTO ACOMPARTMENT select DB2ADMIN.ACOMPARTMENT.* from DB2ADMIN.ACOMPARTMENT IN 'DEMO' insert INTO ACOMPARTMENT select DB2ADMIN.ACOMPARTMENT.* from DB2ADMIN.ACOMPARTMENT It's just a guess (w/info given) but worth a try.
Aug 16, 2002 Thread starter #3 gbfell Programmer Dec 11, 2001 27 US any other ideas? i want to insert into an access db, from an ODBC DB2 db. Upvote 0 Downvote