Quantcast
Channel: Teradata Downloads - Connectivity
Viewing all articles
Browse latest Browse all 445

ADO, ODBC, and Unicode

$
0
0

I'm using VBA and the Microsoft ActiveX Data Objects 2.6 Library to access our Teradata 14.00.05.03 server using Teradata ODBC Driver 15.00.00.01
I have a table that contains unicode characters. When I attempt to bring those back through the connection the unicode characters are converted to ansii and I end up with a bunch of arrows and question marks. I've defined CharacterSet=UTF16 in my connection string. I've tried different combinations of whatnot and have had no luck. No matter what I do ADO shoves the field into type adchar instead of the unicode compliant adwchar or advarwchar.
I would consider workarounds where, perhaps, I convert the varchar to binary in the SQL string, and then deconvert the binary into UTF16, but that's ugly and I'm not sure if Teradata is capable of converting unicode varchar to binary.
 

Forums: 

Viewing all articles
Browse latest Browse all 445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>