MFC - CRecordset::GetFieldValue and nvarchar(MAX) returns no data - by Rene Laviolette

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 694793 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 10/13/2011 1:17:39 PM
Access Restriction Public


We started implementing nvarchar(MAX) into our database and now, whenever a call is made using CRecordset::GetFieldValue nothing is returned.

CDBVariant varValue;
rs.GetFieldValue((short)0, varValue);
sResult = CStringConvert::GetVariant_string(&varValue);

Reference this thread:
Sign in to post a comment.
Posted by Microsoft on 10/25/2011 at 4:47 PM
Hello Rene,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by MS-Moderator08 [Feedback Moderator] on 10/13/2011 at 8:00 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 10/13/2011 at 1:44 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(