|
<img src='http://www.pocketpcdn.com/images/news/clipart/pocketpcdn.gif' align='left' alt='' width='120'>A new article at Pocket PC Developer Network by Joao Paulo Figueira that explains how to workaround an issue in ICommandWithParameters::GetParameterInfo.
<i>The version of SQL Mobile that ships with Visual Studio 2005 incorrectly reports DateTime parameter's size through the GetParameterInfo function of the ICommandWithParameters OLE DB interface.
When calling this function to retrieve SQL command parameter information, DateTime parameters are reported as having the DBTYPE_DBTIMESTAMP type, but the returned size is 8. This is wrong.
The DBTYPE_DBTIMESTAMP type maps to a DBTIMESTAMP structure and, as you can clearly see, its size is 16.
</i>
|