Re: How to get dbconvert() functionlity with ODBC
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Fri, 23 Jun 2006 12:48:15 +0000 (UTC)
Joe (Joe@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
Just converted Db-library C program to ODBC 3.0. Need functionlity of
Db-library dbconvert() funtion. Is OLE DB DataConvert method best approach
for replacing dbconvert() requirement?
To use IDataConvert you need the data for types like DateTime and Decimal
be in the form that IDataConvert works with. I don't know how these types
are represented with ODBC. But as long as the type representation is the
same, IDataConvert should work fine. But keep in mind that it is not a
dbconvert clone, and it works quite differently.
--
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
.
- Prev by Date: RE: data table internal index is corrupt '5'
- Next by Date: Re: insert blob
- Previous by thread: GetNextRows with OraOLEDB.Oracle behaves strangely
- Next by thread: Re: insert blob
- Index(es):