Solved

ODBC Visual Foxpro Linking

Posted on 2003-11-16
4
930 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

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…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

691 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