Navision - ODBC - mysql

zakret
Member Posts: 7
Hi
I have problem with encoding during export data from navision to mysql using odbc.
Navision 40sp2
mysql - 5.0.24
odbc - 3.51
Variables:
Connection as 'Microsoft ActiveX Data Objects 2.8 Library'.Connection
After connect I'm executing:
RecSet := Connection.Execute('INSERT INTO table (field1,field2) values('xxx','xxx'),RecordsAffected,RSOption);
mysql tables and varchar fields have to have latin2 encoding.
Everything is ok, data is inserted until I want to insert special chars as ąłóężźć (regional(polish) chars). Then I have message "Error ODBC : Data too long".
If I set mysql encoding to latin1 special chars are inserted but not shows correctly.
I tried change encoding before insert in navision using ascii2ansii (from download), using CONVERTSTR with no effect.
Any ideas how to solve this, to insert correctly all chars ?
Best Regards
Tomek Zakrecki
I have problem with encoding during export data from navision to mysql using odbc.
Navision 40sp2
mysql - 5.0.24
odbc - 3.51
Variables:
Connection as 'Microsoft ActiveX Data Objects 2.8 Library'.Connection
After connect I'm executing:
RecSet := Connection.Execute('INSERT INTO table (field1,field2) values('xxx','xxx'),RecordsAffected,RSOption);
mysql tables and varchar fields have to have latin2 encoding.
Everything is ok, data is inserted until I want to insert special chars as ąłóężźć (regional(polish) chars). Then I have message "Error ODBC : Data too long".
If I set mysql encoding to latin1 special chars are inserted but not shows correctly.
I tried change encoding before insert in navision using ascii2ansii (from download), using CONVERTSTR with no effect.
Any ideas how to solve this, to insert correctly all chars ?
Best Regards
Tomek Zakrecki
0
Comments
-
Have you tried to experiment with the ODBC Option on MyODBC driver? For some cases you need to set some attributes to work correctly...0
-
kine wrote:Have you tried to experiment with the ODBC Option on MyODBC driver? For some cases you need to set some attributes to work correctly...
Yes, I tried with different opton values. If option is not 0 (zero) there is always error, even I want to insert chars like a,b,c. With option 0 I can insert a,b,c but not my regional chars.
t.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions