dbTalk Databases Forums  

SSIS Importing Booleans

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


Discuss SSIS Importing Booleans in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
james_strugnell@hotmail.com
 
Posts: n/a

Default SSIS Importing Booleans - 11-20-2006 , 04:43 AM






When importing from a flat file (csv in my case) you are given the
option to "Suggest Column Types". Within this section you are able to
identify boolean values by specifying custom True/False values. In my
situation I have a lot of Yes/No fields. So I enter "Yes,No" as my
identifiers and it correctly suggests the "bit" type for the Yes/No
columns. However when I actually run the import which simply copies the
columns to a SQL Server table it fails with the following message:

The data conversion for column "******" returned status value 2 and
status text "The value could not be converted because of a potential
loss of data.".

Whats the point of having it suggest a Bit type if it can't actually
convert it when it comes to importing? I know I can get round this with
a "Data Conversion" transformation but it would be a lot easier if the
suggested boolean type actually enabled you to import the data as
such...?

Am I missing something?

James.


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.