Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Linked tables in Acess from Sql server (call failed) error!!! Expand / Collapse
Author
Message
Posted Monday, July 1, 2013 5:47 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, March 27, 2014 8:39 PM
Points: 18, Visits: 78
i have an access db which has appx 25 linked tables which read from a SQL server db, i have a macro which runs multiple queries in access which readds data from those linked tables and saves it on a local table

my problem is when i run the queries to update the data from the linked tables i get "ODBC-Call Failed" error

i've tried to reestablish the connection but this happens again ?? any ideas would be appreciated.
Post #1469008
Posted Tuesday, July 2, 2013 5:57 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, September 9, 2014 9:46 AM
Points: 20, Visits: 470
what happens if you run each step manually? I have seen something like this if one step is broken and that step might involve, for example, an Access link to a SQL table that has been changed (but Access has not been refreshed since the change)
Post #1469422
Posted Wednesday, July 3, 2013 10:48 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 29, 2014 8:51 AM
Points: 8, Visits: 45
An "ODBC-Call Failed" error can be due to many things. The error message is usually accompanied by some further info which is more helpful, such as "Primary key violation." If you can include all the information it would help a lot. Nonetheless, here are my thoughts:

First, re-link the tables to make sure everything is current in Access

Errors while updating linked tables, in my experience, are usually due to invalid table joins, key (Primary or Foreign) violations, or data type mismatches. You don't mention whether your update queries involve multiple tables. If so, make sure the table joins are proper. If the joins are not on unique indexes, you'll have problems. The best way to ensure your update query is valid is to open a simple SELECT query (no updates) and view the records in datasheet view. Then, manually attempt to update one of the non-key values. If you can do that, you know your table joins and table links are OK. If not, then you've found the source of the problem.

Let us know if you can manually update the a row value from Access via your query -- that will get us to the next step.
Post #1470160
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse