D2 (Debian) + MSSQL
Sergey via Digitalmars-d
digitalmars-d at puremagic.com
Tue Oct 14 18:48:58 PDT 2014
Yes, it works now:
$ rdmd -L-lsybdb test_tds_connect.d
(If somehow get rid of "-L-lsybdb". Maybe add it somewhere in the
code ...?)
I got some data from the server, and it is certainly:
005����������������������������������������������... etc.
I've written before transcoding function, and I need to get a
byte string for this. So how to do it?
Now it's like:
DBCHAR[255] table_field;
dbbind(dbconn, 1, NTBSTRINGBIND, 0, cast(BYTE*)&table_field);
But I need to may be:
ubyte[] ubyte_value = [];
dbbind(dbconn, 1, NTBSTRINGBIND, 0, ubyte_value);
(it does not work of course)
Thanks in advance.
More information about the Digitalmars-d
mailing list