Advertisement

07.23.2007 at 07:55AM PDT, ID: 22714256 | Points: 500
[x]
Attachment Details

ODBC Connectivity error [ProviceX] [ODBC] Unexpected extra token.

Tags: extra, odbc, token, unexpected
ODBC Connectivity error [ProviceX] [ODBC] Unexpected extra token.
I am using VFP 9.0 connecting to a MAS90 database. The connection is made but when trying to define remote views (after selecting the table from the MAS90 table list) the above error occurs. Any ideas?
Thanks in advance.
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: pwinters
Question Asked On: 07.23.2007
Participating Experts: 3
Points: 500
Views: 0
Translate:
Loading Advertisement...
07.23.2007 at 09:11AM PDT, ID: 19548780

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.23.2007 at 09:13AM PDT, ID: 19548797

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.23.2007 at 09:16AM PDT, ID: 19548825

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.23.2007 at 09:20AM PDT, ID: 19548858

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
07.23.2007 at 09:26AM PDT, ID: 19548905

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.05.2008 at 01:30PM PST, ID: 20590817

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.13.2008 at 08:00PM PST, ID: 20890805

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
07.23.2007 at 09:11AM PDT, ID: 19548780

Rank: Genius

That message usually denotes that a character combination has been interpreted by the ODBC driver in an odd way and it gets translated into an extra byte value in a terminated string.

Unfortunately, I can't find any details in their documentation which seems to cover errors as a slight afterthought.

ODBC v4.20.1000 - Windows 9x/ME/NT4/2000/XP/2003/Vista : x86 (32 bit)
http://www.providex.ca/downloads/download.pvs?file=00120

ProvideX ODBC 4.20 Driver ReadMe PDF
http://www.providex.ca/support/docs/download.pvs?file=00253

ODBC 4.x Product Manual
ftp://www.pvx.com/docs/manuals/Product/PVX-ODBC4x.pdf

ProvideX ODBC 4.20 Driver
http://www.providex.ca/support/docs/readme/odbc/pvxodbc420.pdf
 
07.23.2007 at 09:13AM PDT, ID: 19548797

Rank: Genius

I forgot to mention that a "/*" string passed through a db2 ODBC driver can give a similar error message.

But, of course, I can't know exactly what the ProvideX ODBC driver is having trouble with.
 
07.23.2007 at 09:16AM PDT, ID: 19548825

Rank: Genius

I checked a little further and see some odd date handling to MS SQL Server can generate that type of error message.  I can assume that MS, the company with the ODBC standards, has that "Unexpected extra token" message as a catch-all message that only reports the symptom and is short on details much like many MS error messages seem to be.
 
07.23.2007 at 09:20AM PDT, ID: 19548858

Rank: Genius

FWIW reference to a similar SQL Server issue:

The DTS package provides this error:
"Unexpected extra token: ("

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=63511
 
07.23.2007 at 09:26AM PDT, ID: 19548905

Rank: Genius

In the ODBC setup, you may want to turn on ODBC Tracing to see if the subsequent log file contains any clues in whatever strings you are trying to send to MAS90.
 
01.05.2008 at 01:30PM PST, ID: 20590817
I'm not sure about anyone else, but i have had nothing but trouble with the MAS90 ProvideX driver.  I don't believe that it is fully ODBC compliant.  the fact that there are no third party tools for it should be evidence enough.  At least none that i have seen.  They own all the extended solutions.
what exactly are you trying to do anyway?  Have you tried Access.  It works fairly well for reading data.
 
02.13.2008 at 08:00PM PST, ID: 20890805
The MAS90 providex driver is not fully ODBC compliant.

A unexpected extra token is usaully because of a syntax error. There is special conventions when the pvx driver uses that aren't normal. I use vb and vbscript to read MAS90 tables (note: the providex driver is ready only).

Anyway I don't know that much about VPF but here is a VB code using sql queriy that will show you how funcky it is just to do a inner join.

 Private Sub Form_Load()
Dim myconnection
Dim myRecordset
Dim sql
Dim str
Dim objFS
Dim objFile
Dim strcon
strcon = "DSN=SOTAMAS90;UID=youruserid|yourcompany;PWD=yourpwrd"
Set myconnection = CreateObject("ADODB.Connection")
Set myRecordset = CreateObject("ADODB.Recordset")
myconnection.Open strcon

sql = "SELECT AR_InvoiceHistoryHeader.SalesOrderNo as a ,AR_InvoiceHistoryHeader.InvoiceDate as b, " & _
"AR_InvoiceHistoryTracking.StarshipShipVia as c,AR_InvoiceHistoryTracking.Weight as d,AR_InvoiceHistoryTracking.TrackingID as e " & _
"FROM " & _
"{IJ AR_InvoiceHistoryTracking INNER JOIN AR_InvoiceHistoryHeader ON " & _
"AR_InvoiceHistoryTracking.InvoiceNo = AR_InvoiceHistoryHeader.InvoiceNo} " & _
"WHERE " & _
"AR_InvoiceHistoryHeader.SalesOrderNo LIKE " & Chr(39) & "W%" & Chr(39) & "AND " & _
"AR_InvoiceHistoryHeader.InvoiceDate > ({ fn CURDATE()}-4)"



myRecordset.Open sql, myconnection
Set objFS = CreateObject("Scripting.FileSystemObject")
Set objFile = objFS.CreateTextFile("C:\TESTFILE.TXT", True, False)
Do While Not myRecordset.EOF
objFile.WriteLine myRecordset("a") & "," & _
                  myRecordset("b") & "," & _
                  myRecordset("c") & "," & _
                  myRecordset("d") & "," & _
                  myRecordset("e")
                 

myRecordset.MoveNext
Loop
objFile.Close
myconnection.Close
Set objFile = Nothing
Set ogJFS = Nothing
Set myRecordset = Nothing
Set myconnection = Nothing
Unload Form1


This code is a part of a tracking export program that I run scheduled daily to put tracking numbers from our web orders back onto our website. It basically queries MAS90 for the tracking info ....within 4 days to compensate for weekends. and puts that In a text file. I have a DTS package that executes through enteprise manager(sql) and picks up this text file and goes through some proccesses to update our web orders table.

 
 
20080236-EE-VQP-29