Re: CADORecordBinding ... adDate
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Thu, 10 Nov 2005 23:11:15 +0000 (UTC)
beginthreadex (beginthreadex@xxxxxxxxxxx) writes:
> I am using RecordBinding from VC++ successfully against a SQL server
> 2000 database. My issues revolve around getting datetimes from SQL into
> anything readable in VC++ as a date/double/ULARGE??? variable. Right now
> I can put this data into a double but the data is not able to be parsed.
> There does not seem to be a clean conversion from double to a FILETIME
> or other struct.
>
> How can I use CADORecordBinding and get a "getdate()" value from SQL
> without converting to a varchar(x)?
>
> The sample in MSDN states using a DBDATE variable, but there's no success
> with this. It also states that you should use ADO_FIXED in one sample and
> then another is ADO_VARIABLE ... so I'm really confused and would really
> welcome a solution at this point.
The type indicator to use in OLE DB is DBTYPE_DBTIMESTAMP. Really how
that translates when you drag in ADO, I don't know, as I have not
worked with ADO from C++.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: CADORecordBinding ... adDate
- From: beginthreadex
- Re: CADORecordBinding ... adDate
- From: beginthreadex
- Re: CADORecordBinding ... adDate
- Prev by Date: Re: Lots of Data :-(
- Next by Date: ado.net begin informix transaction
- Previous by thread: Lots of Data :-(
- Next by thread: Re: CADORecordBinding ... adDate
- Index(es):
Relevant Pages
|