Monday, March 12, 2012

ODBC + CDBVariant

Hi,

I'm using sql serser 2000, CRecordset, CDatabase, ODBC

How can I get ntext / nvarchar type field from my database?

maybe something like:

CDBVariant val;

rs.GetFieldValue("activity ",val);

CString activity = (*val.m_pstring).GetBuffer();

Thanks, Yael

I believe this is pretty much the same question as the post on http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1477058&SiteID=1

Did the response to that thread help you?

~Warren

No comments:

Post a Comment