dbTalk Databases Forums  

SQL30020 on extended ascii characters

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss SQL30020 on extended ascii characters in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MTamas
 
Posts: n/a

Default SQL30020 on extended ascii characters - 10-12-2007 , 01:35 AM






Hello,

we have a legacy application written in C. It uses embedded sql to
connect to the database and to perform queries on it. Now we are
writing several extensions in .net, and it would be necessary to use
the same connection instance as the embedded sql because of
transactions. So I open the database connection in .net (Odbc, OleDb
and ibm .net data provider was also tried), and the embedded sql
queries can use it. However, when a parameter in the embedded sql
query contains extended ascii characters (e.g ö, ü, ä etc.), I get the
following error: SQL30020N Execution of the command or SQL statement
failed because of a syntax error in the communication data stream that
will affect the successful execution.... Reason Code:0x220E,
SQLSTATE=58009. In the legacy application we use single-byte
characters to store strings exclusively. The codepage is 1250 on both
the client computer and the database. We use DB2 9.1.200.166, the OS
is Vista (XPSP2 was also tried)

Tamas


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.