Oliver,
I know there are some fixes in DBD::ODBC from a long time ago which handled
ntext columns, but I have not kept up with Perl and Unicode specific
changes, therefore there may be a problem.
If you can cobble together a short perl script which:
- Creates a test table
- inserts test data
- retrieves test data (and check accuracy if possible)
If you can package up a short test like this, I can look at it...see the
mytest directory for similar samples, such as joetest?.pl or t\20SqlServer.t
for examples. Ultimately, I'd like to make a unicode test part, but it will
have to start in t\20SqlServer.t anyway...
Regards,
Jeff
>
> Using ActiveState Perl 5.6.1 build 633
> The following happens when using either ActiveState's DBI & DBD:ODBC
> ppds or the latest ones posted by Jeff Urlwin.
>
> When retrieving ntext, nvarchar et al. values from a MS SQL 2000 server
> using DBD::ODBC, extended characters show up as ?????
>
> I'm also unable to get "correct" values through DBD::ADO, Win32::OLE and
> Win32::ODBC, even when disabling AutoTranslate in the DSN properties.
> The only workaround I have found is by using DBD:JDBC (with a bad hack
> for SQL_BIGINT) and MS's JDBC driver.
>
> I've also tried to find hints as to where or what to look for in various
> lists and archives, but to no avail.
>
> Is it possible to retrieve / insert Unicode values using DBD::ODBC and
> MS SQL 2000 ? If so, what am I missing here ?
>
> --
> Olivier Poulet
>