Re: Error accessing Oracle date fields
- From: mgweeks@xxxxxxxxxxx
- Date: 21 Sep 2005 10:08:11 -0700
Yes, this is C++. No, I am not using bound fields.
The code to create the recordset is:
_com_util::CheckError(pDataRec.CreateInstance(__uuidof(Recordset)));
pDataRec->CursorLocation = adUseClient;
pDataRec->PutRefActiveConnection(m_pConnect.GetInterfacePtr());
_com_util::CheckError(pDataRec->Open(bstrSQL, vtMissing, adOpenStatic,
adLockBatchOptimistic, -1));
pDataRec->PutRefActiveConnection(NULL);
pDataRec->MarshalOptions = adMarshalModifiedOnly;
Where bstrSQL is essentially, "select * from tablename". And then, all
I am doing to access the recordset is:
_variant_t vtItem = pDataRec->Fields->Item[bstrColumn]->Value;
I appreciate your quick response. Thanks for looking at this.
.
- References:
- Error accessing Oracle date fields
- From: mgweeks
- Re: Error accessing Oracle date fields
- From: Stephen Howe
- Error accessing Oracle date fields
- Prev by Date: ADOX copy database
- Next by Date: Re: ADO vs. Progress Bar
- Previous by thread: Re: Error accessing Oracle date fields
- Next by thread: Re: ADOX Column Creation Problem
- Index(es):
Relevant Pages
|
|