dbTalk Databases Forums  

accessing empty date columns via ole db

comp.databases.btrieve comp.databases.btrieve


Discuss accessing empty date columns via ole db in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matthias
 
Posts: n/a

Default accessing empty date columns via ole db - 01-31-2007 , 11:59 AM






Hi,

does anybody know how to treat empty date columns (shown as 0 in the
pervasive sql.manager) when accessing them via an Ole DB driver?

I always get an exception when accessing it for example in SSIS or in
my C# code, because 0 is a date out of range.

thanks for your answer!

matt


Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: accessing empty date columns via ole db - 01-31-2007 , 06:36 PM






Matthias wrote:

Quote:
Hi,

does anybody know how to treat empty date columns (shown as 0 in the
pervasive sql.manager) when accessing them via an Ole DB driver?

I always get an exception when accessing it for example in SSIS or in
my C# code, because 0 is a date out of range.

thanks for your answer!

matt
There are various date "fixer" programs available, such as the free one
on Pervasive's web site in the ComponentZone, or we have our own
product as well that's pretty cheap. They all work the same way --
they change the "0" dates to valid dates, like 1/1/1900 or some other
value.

This is no good for some applications of course, but we can thank
Microsoft for designing such a robust interface (called ODBC) that
simply doesn't allow invalid dates.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Chicago: Pervasive Service & Support Class - 03/2007 ***


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.