SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Linked tables in Acess from Sql server (call failed) error!!!


Linked tables in Acess from Sql server (call failed) error!!!

Author
Message
devilsid
devilsid
Valued Member
Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)Valued Member (60 reputation)

Group: General Forum Members
Points: 60 Visits: 90
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.
bgalway
bgalway
SSC Journeyman
SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)SSC Journeyman (81 reputation)

Group: General Forum Members
Points: 81 Visits: 902
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)
SmackMule
SmackMule
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 89
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search