PC Review


Reply
Thread Tools Rate Thread

BUG?: DACW generates DBDate parameters instead of DBTimestamp for oledb DA.

 
 
François Rioux
Guest
Posts: n/a
 
      27th Aug 2003
Hi,
I'm using VSStudio.Net 2003 bound to an Access 2000 DB. Using the datasets
and an oledb data adapter.
Using the DACW, I generate a dataadapter select and insert,update,delete
commands using the DACW. The Insert command parameter type for an Access
Date/Time field is DBDate, which results in troncated dates (no hours or
minutes) in the database upon insertion and updates of new rows from the
data adapter update method.

So if I fill the ds table, modify a row field and update the underlying
table results in a truncated date!

The oledb type corresponding to a datetime is DBTimestamp not DBDate, for
what I can read in the help (Using Parameters with a DataAdapter in the
..Net Framework User Guide). Manually changing the parameter type to
DBTimestamp solves this issue.

This looks to me like a bug, unless there is a clear explanation I can't
figure out.

Can some confirm this is a bug or indicate me how to correctly use the DACW
to generete update commands that work.

Thanks,

François.


 
Reply With Quote
 
 
 
 
Carl Huber [MS]
Guest
Posts: n/a
 
      29th Aug 2003
Hi François,

I'm able to reproduce the same behavior. I'll look into for you and post
back to this thread when I have more information.

Regards,
Carl Huber, MCSD
Microsoft Developer Support/Visual Basic WebData


This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! -> http://www.microsoft.com/security



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameters in query to mdb using oledb =?Utf-8?B?S3Jpc3RpYW4=?= Microsoft ADO .NET 5 20th Jan 2005 12:54 AM
Parameters with OleDb Sheila Jones Microsoft ADO .NET 4 12th Feb 2004 09:44 PM
OleDb Parameters BUG or BAD DESIGN Microsoft Dot NET Framework Forms 15 14th Jan 2004 11:19 PM
OleDb Parameters BUG or BAD DESIGN Microsoft C# .NET 14 14th Jan 2004 11:19 PM
oleDb Command Parameters Bill Cart Microsoft C# .NET 3 14th Sep 2003 11:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:46 PM.