Saturday, December 01, 2012 3:24 AM
When I try to call QueryInterface() on a rowset object for interface IGetRow, it just return a E_NOINTERFACE.
Does the Ole Db rowset support IGetRow interface?
My connection string is:
Provider=SQLOLEDB;User ID=sa;password=111111;Data Source=Percy_pc;initial catalog=RHGame
The code getting IGetRow interface is:
IGetRow* get_row; hr=row_set->QueryInterface(IID_IGetRow,(void**)&get_row);
Thursday, December 06, 2012 9:02 AMModerator
Using the IGetRow interface to get a row object or URL for a row in a rowset, we have two methods:
Please refer to these references for how to using IGetRow interface in OLEDB:
TechNet Community Support
Thursday, December 06, 2012 9:41 AMI used Accessor instead of IGetRow to acheive the goal. Thanks.
- Marked As Answer by Percy Xu Thursday, December 06, 2012 9:41 AM