Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 IMEI Data type ???

Author  Topic 

rwaldron
Posting Yak Master

131 Posts

Posted - 2009-06-25 : 07:26:53
Hi all,
I am trying to export from sql table to excel in SSIS
there is an IMEI column in SQL containing data like 123456789123456.
When I export to excel the data is displayed as 1.23E+14.
If I format in excel the cell to number and 0 decimals I get the 123456789123456 back.

My question is what data type in SSIS,precision and scale should i use to format the output correctly.
In SSIS Mappings there is a decimal data type?
Thx,
Ray..

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-06-25 : 07:30:00
The problem is not SSIS, it is Excel which tries to guess the datatype for the data.
You can add s single (') to the beginning of the data and Excel will not try to convert text to numeric.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

kumar1248
Starting Member

20 Posts

Posted - 2009-06-25 : 12:47:01
Peso's suggestion is one way of doing it.
Also try by specifying IMEX=1 property in the connection string of EXCEL.
Go to Top of Page
   

- Advertisement -