Windows Mobile Developer Network Forum

Windows Mobile Developer Network Forum
It is currently Fri Sep 03, 2010 10:29 am

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Binding DateTime command parameters in SQL Mobile
PostPosted: Thu May 04, 2006 9:39 pm 
Offline
Site Admin

Joined: Sun Mar 30, 2003 4:54 pm
Posts: 695
<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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group