MS-SQL ntext field retrieval over odbc
Posted: Tue Jan 11, 2011 12:58 pm
Hi there,
I've got an app that retrieves data from a MSSQL server instance. The only field in the database concerned is of type ntext. There are three rows as follows:
Row 1 here
Row 2 here
ümlaut
When I have my app running on a mac and I log the number of bytes retrieved I get 10, 10 and 6. I also print the results of the query to a text file an I get the expected results, the rows as stated above.
However, when I run the same app on a windows machine using the same DSN settings as on the mac I get a byte count of 1 for each row and the output is as follows:
R
R
ü
On the windows machine I am using the built in odbc drivers, on the mac I am using drivers supplied by ActualTech.
In the dsn setup on windows I have unticked all options on the final config screen, so there is no character translation or any other options on. I have tried various combinations of these options. These settings are also all set to be off on the mac.
Has anyone ever come across anything similar?
Thanks a lot - Andy
I've got an app that retrieves data from a MSSQL server instance. The only field in the database concerned is of type ntext. There are three rows as follows:
Row 1 here
Row 2 here
ümlaut
When I have my app running on a mac and I log the number of bytes retrieved I get 10, 10 and 6. I also print the results of the query to a text file an I get the expected results, the rows as stated above.
However, when I run the same app on a windows machine using the same DSN settings as on the mac I get a byte count of 1 for each row and the output is as follows:
R
R
ü
On the windows machine I am using the built in odbc drivers, on the mac I am using drivers supplied by ActualTech.
In the dsn setup on windows I have unticked all options on the final config screen, so there is no character translation or any other options on. I have tried various combinations of these options. These settings are also all set to be off on the mac.
Has anyone ever come across anything similar?
Thanks a lot - Andy