Solved

ODBC Visual Foxpro Linking

Posted on 2003-11-16
4
921 Views
Last Modified: 2008-02-01
I am trying to link data from an access database an i am having difficulties.  I have created an ODBC visual foxpro link to the database, but when i try to copy the data from an excell spreadsheet to the database, i get the following error

ODBC--update on a linked table 'patient' failed
[microsoft][odbc visual foxpro driver] SQL: statement too long. (#812)

In plain english, what is it telling me and how do i correct it?
 
0
Comment
Question by:CalMedMike
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
erici earned 250 total points
ID: 9760056
I can only speculate on the exact problem, but I would guess that this is probably happening because the data you are trying to insert into the table doesn't match up with the fields in the table.  Also verify that you have update permissions to the data in the db by opening one of the linked tables and changing some of the data manually.

If that works, create a query on the table that you're attempting to insert into selecting all the fields from your excel spreadsheet in the same order as your excel spreadsheet.  Open that query and select the NEW row at the end of the query.
Then in Excel, copy all the cells from the spreadsheet (making sure to only select the cells you need to paste into the db.)  And go back into the Query results and paste.

I've used that technique many times to insert data.  You just need to make sure that the shape of the data is identical on both sides.  

You also need to make sure you're inserting valid data.  If the foxpro db is setup with autonumber/identity primary key fields (which hopefully it is) you probably should avoid entering these values in the db directly as that can cause problems too.

Good luck!
0
 
LVL 9

Expert Comment

by:ornicar
ID: 10063934
----------------------------------------------------------------------------------------
This question has been abandoned and needs to be finalized.
 You can accept an answer, split the points, or get a refund (information at http:/help.jsp#hs5)
  If you need a moderator to help you, post a question at Community Support (http:/Community_Support/)

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

ornicar
Cleanup Volunteer

---------------------------------------------------------------------------------------------
0
 
LVL 39

Expert Comment

by:stevbe
ID: 10103259
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: erici {http:#9760056}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

stevbe
EE Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question