dbTalk Databases Forums  

DTS Conversion of Logical (bit) DBase III DBF

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS Conversion of Logical (bit) DBase III DBF in the microsoft.public.sqlserver.dts forum.



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

Default DTS Conversion of Logical (bit) DBase III DBF - 05-12-2004 , 02:43 PM






Recently (within the last 2 months) we began having a
problem using DTS for conversion of DBFs that have a
Logical field. The field, which is logical in Clipper, is
never null in the DBF when viewed from DBX, but the
results from DTS are definitely incorrect. (We verified
through DBX that only 13 records out of 15,000 were true,
but DBX yielded over 10,000 records as true.)

This problem only occurs when a client machine running the
Enterprise Manager initiates the job. The client can be
98, 2000 and XP. When the same job is run through
enterprise manager directly on the server, the results are
perfect.

As a side note, but possibly related, We have always
imported DBFs into excel for basic work and lists and
until the last couple of months this worked as perfectly
as SQL DTS. Now though, the logical field imports in as 0,
1, or null AND THERE ARE NO NULLS! only true and false.

Please Help

Reply With Quote
  #2  
Old   
Partha Mandayam
 
Posts: n/a

Default Re: DTS Conversion of Logical (bit) DBase III DBF - 05-12-2004 , 04:41 PM






You could write an ActiveX script to convert the 0 and 1 to true and
false while importing.

Regards

Partha Mandayam
Software Consultant
Home page: http://partha.tripod.com


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #3  
Old   
Cindy Winegarden
 
Posts: n/a

Default Re: DTS Conversion of Logical (bit) DBase III DBF - 05-13-2004 , 12:08 PM



In news: c2f601c43859$65fb9d90$a501280a (AT) phx (DOT) gbl,
Allan T <anonymous (AT) discussions (DOT) microsoft.com> wrote:
Quote:
Recently (within the last 2 months) we began having a
problem using DTS for conversion of DBFs that have a
Logical field. The field, which is logical in Clipper, is
never null in the DBF when viewed from DBX, but the
results from DTS are definitely incorrect. .....
Now though, the logical field imports in as 0,
1, or null AND THERE ARE NO NULLS! only true and false.
Hi Allan,

I don't work with Clipper DBFs but I do work with FoxPro DBFs. In FoxPro a
date field can have a value of .T. or .F., or it can never have been given a
value - it is considered "empty." The ability to set a value of .NULL.
didn't come until later versions of Visual FoxPro, but an "empty" date is
still different from a .NULL. date.

For comparison purposes, an empty date will evaluate to .F. in FoxPro.

I'm sure you're getting nulls for the "empty" dates. You'll have to think of
a way to turn those values into False values.

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden (AT) mvps (DOT) org www.cindywinegarden.com





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.