Does the Ole Db rowset support IGetRow interface?
-
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);
All Replies
-
Thursday, December 06, 2012 9:02 AMModerator
Hi Percy,
Using the IGetRow interface to get a row object or URL for a row in a rowset, we have two methods:
IGetRow::GetURLFromHROW
IGetRow::GetRowFromHROW
Please refer to these references for how to using IGetRow interface in OLEDB:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms718047(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms721234(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms718237(v=vs.85).aspx
Iric Wen
TechNet Community Support -
Thursday, December 06, 2012 9:41 AM
I used Accessor instead of IGetRow to acheive the goal. Thanks.- Marked As Answer by Percy Xu Thursday, December 06, 2012 9:41 AM



