Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Varchar data displaying NULL while loading to the table.

$
0
0
Hi

In excel 2007 file, one of the columns contains the below values

Job Number

10132386
10289093
10132628
10191002
10162417
10137136
10189017
10160436
10133333
10192752
10182457
WSDD-105346353
WSDD-105685515
WSDD-105977159
WSDD-107316895
WSDD-107479127

As i am using ssis 2005, installed driver to support the 2007 file format and set the connection string as
"Data Source="+ @[User::File_Name] + ";Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties='Excel 12.0 XML;HDR=YES;IMEX=1';".

Issue:
In sql server table, i declared column "Job number" as Varchar.

While loading the data from SSIS to table, it loads the numeric data correctly, but displayed "NULL" for Varchar data (ie)

10132386
10289093
10132628
10191002
10162417
10137136
10189017
10160436
10133333
10192752
10182457
NULL
NULL
NULL
NULL

While previewing the data in OLEDB source itself, it is showing "NULL".

Please advise how to load the varchar data for this scenario.

Regards
SqlStud


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>