CSV file import, Scientific format

barkome
barkome used Ask the Experts™
on
Hello

I have a few csv files that has the following values in a scientific format:

ACCOUNT_NUMBER, INVOICE_NUMBER
1E+11, 2.0225E+11

scientific.JPG
However, when I open the csv file in notepad, it displays the format I need.
"ACCOUNT_NUMBER","INVOICE_NUMBER"
"100000309953","202250172428"

scientific_1.JPG
My question is, how can I import the desired notepad value (100000309953) using ssis when the csv file has them recorded as a scientific value (1E+11, 2.0225E+11)?

Is there a way to convert the csv file to a txt file format, or is there way that I can use SSIS to convert the scientific value.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
lcohanDatabase Analyst

Commented:
I suggest use SQL Import/Export wizard and btw - in EXCEL, just make the columns bigger and you'll see the actual value....
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
What you see in the 'text' version is what you are actually getting.  You need to tell Excel to treat those columns as text to get the same display.  This is a common occurrence where the 'text' is all numbers.
Lead Software Engineer
Commented:
The CSV file does not have the values in scientific notation. Excel is displaying them in that format. You should not need to do anything special to import the file using SSIS.
lcohanDatabase Analyst

Commented:
how to "Start the SQL Server Import and Export Wizard"
https://msdn.microsoft.com/en-us/library/ms140052.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial