If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Importing CSV File

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-09, 15:18
darrellj darrellj is offline
Registered User
 
Join Date: Jan 2007
Posts: 7
Importing CSV File

Good Afternoon,

I have tried to import a csv file into a new table that I created in pervasive. All of the fields are LONGVARCHAR. The heading in the csv file has been removed so there is only data to import.

Pervasive gives me a syntax error, but doesn't tell me what the problem is. There are the same number of fields in the csv file as in the database.

Has anyone else had this problem? What else can I try?
Reply With Quote
  #2 (permalink)  
Old 01-30-09, 16:28
mirtheil mirtheil is online now
Registered User
 
Join Date: Dec 2001
Posts: 1,015
A few questions:
- What version of PSQL are you using?
- What is the exact error?
- What tool are you using?
- If you are using the PSQL Import tool, are you using an SQL statement or the "table" option?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 01-30-09, 16:48
darrellj darrellj is offline
Registered User
 
Join Date: Jan 2007
Posts: 7
I am using version 10.
The error says: [Pervasive][Odbc Engine Interface]Syntax Error
I am using the Import Data option in the PPC
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On