Looking for CSharp equivalent of SQLBindCol

  • Thread starter Thread starter Faheem Khan
  • Start date Start date
F

Faheem Khan

I'm trying to get some XML data stored as binary data in a MS SQL server
database's table using C#

I have code which used to extract this data in C++
Pasting the functions used in C++ to get the same data...
sr = SQLExecDirect(hstmt1, (SQLCHAR *)szSQLQuery, SQL_NTS);
sr = SQLBindCol(hstmt1, (UWORD)1, SQL_C_BINARY, prgbReq, *pcbReq, (long
*)pcbReq);
sr = SQLBindCol(hstmt1, (UWORD)2, SQL_C_BINARY, prgbRsp, *pcbRsp, (long
*)pcbRsp);

thnx a lot for your help. Appreciate it.

_Faheem
 
FYI:
Got this figured out. The Encoding, Decoder name classes are helpful to get
details.

_Faheem
 
Back
Top