Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 10 AUG 1998 10:41:31AM Nick Stevenson wrote:

I am madly trying to finish a WP procedure from LH to SQl Server (6.5), but the DATE column is giving me grief. I have defined it as 'datetime' in SQL server and 'DATETIME(19)' in my dataset. Whatever date format I try keeps giving me garbage (12/31/67 0:00AM). I have tried mdy, dmy, ymd etc etc, sometimes the month comes right, but never the year. What else can I look at? I use both the Query tool in OI and the ISQL/w tool in SQL server to look at my results.


At 10 AUG 1998 01:45PM Cameron Revelation wrote:

Hi Nick,

I am madly trying to finish a WP procedure from LH to SQl Server (6.5), but the DATE column is giving me grief. I have defined it as 'datetime' in SQL server and 'DATETIME(19)' in my dataset. Whatever date format I try keeps giving me garbage (12/31/67 0:00AM). I have tried mdy, dmy, ymd etc etc, sometimes the month comes right, but never the year. What else can I look at? I use both the Query tool in OI and the ISQL/w tool in SQL server to look at my results.

12/31/67 0:00AM is the "zero date" for OpenInsight. It means that you are warehousing one of the following values:

1. A zero-length string

2. An integer value of zero

3. A string value which cannot be converted to a number by OpenInsight

I am guessing that you are seeing #3. The value being set to the DataSet should be in OpenInsight internal date format. (For example, today is 11180.) Make sure you are not converting the value to a string format, such as "08/10/98".

Cameron Purdy

Revelation Software


At 10 AUG 1998 03:21PM Nick Stevenson wrote:

You know, Cameron, you are absolutely right. I just "assumed" you had to populate the datasets in OCONV formats. The erroneous date did look kind of familiar, but it never dawned…. Thanks (again)


At 10 AUG 1998 05:05PM Cameron Revelation wrote:

Hi Nick,

It isn't the first time that a second pair of eyes have solved a problem! Glad to be able to help,

Cameron Purdy

Revelation Software

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/7fb4f9ff9b28395c8525665c0050b4af.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1