dbTalk Databases Forums  

PassThroughQuery failing

comp.databases.ms-access comp.databases.ms-access


Discuss PassThroughQuery failing in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tony_E
 
Posts: n/a

Default PassThroughQuery failing - 03-25-2011 , 12:36 PM






Hello ;
Access 2000/ms sql server

I built a PassThroughQuery. It is an append to a sql server table. The
message I get is ODBC call failed. Invalid Object Named export_specs;

here is the sql:

INSERT INTO dbo.CUST_ORDER_BINARY ( CUST_ORDER_ID, BITS, TYPE,
BITS_LENGTH )
SELECT ID, ORDER_SPECS, TYPE, BIT_LENGTH
FROM Export_Specs;


Any body have any ideas on how to resolve this? BTW export_specs is an
actual table, it is an access table.

Thanks

Tony

Reply With Quote
  #2  
Old   
Bob Barrows
 
Posts: n/a

Default Re: PassThroughQuery failing - 03-25-2011 , 02:09 PM






Tony_E wrote:
Quote:
Hello ;
Access 2000/ms sql server

I built a PassThroughQuery. It is an append to a sql server table. The
message I get is ODBC call failed. Invalid Object Named export_specs;

here is the sql:

INSERT INTO dbo.CUST_ORDER_BINARY ( CUST_ORDER_ID, BITS, TYPE,
BITS_LENGTH )
SELECT ID, ORDER_SPECS, TYPE, BIT_LENGTH
FROM Export_Specs;


Any body have any ideas on how to resolve this? BTW export_specs is an
actual table, it is an access table.

A passthrough query is, er, passed through, to the remote database for
execution. This means that it can only reference objects on that remote
database. Your sql server has no knowledge of anything contained in your
Access local database. Your options include:
1. Create a link in Access to the sql server table and use a non-passthrough
query to perform the insert.
2. Create a linked server in the sql server that points at your Access
database, and use OPENQUERY in your passthrough sql statement to retrieve
the results from Access.
3. Depending on the version of sql server, create either a dts or ssis
package to perform the data transfer
4. Use the VBA TransferDatabase method to transfer the data

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.