|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 12:43 AM
Points: 81,
Visits: 204
|
|
Hi,
Am attempting to import a spreadsheet of data as a new table.
I specify the field as varchar(10).
I have made sure that the spreadsheet has the column stored as text.
However the Import Data wizard within SQL workbench or whatever the 2005 replacement is called for Enterprise manager, skips data that doesn't match a numeric value
Eg My data looks like (coded values) 1A 2 3 0 1A
SSIS inserts nulls instead of the '1A' value.
Why Why Why?
Enterprise Manager and DTS was so easy!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, November 03, 2010 2:32 AM
Points: 1,249,
Visits: 400
|
|
Welcome to one of the most irritating nuances of SSIS. Text is seen as NVarchar and not Varchar. In other words, if you have a text (10), make it Nvarchar (20). You can use a dataconversion transformation to get past this.
~PD
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, November 03, 2010 2:32 AM
Points: 1,249,
Visits: 400
|
|
| My bad... I meant in Excel, text is seen as nvarchar and not varchar
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 14, 2013 12:43 AM
Points: 81,
Visits: 204
|
|
Ill try nvarchar next time..
I imported it into MS Access first and then into SQl Server.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Wednesday, November 03, 2010 2:32 AM
Points: 1,249,
Visits: 400
|
|
SSIS and MS Access also has its own unique nuances, some of which are downright irritating.
Good luck!
~PD
|
|
|
|