• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

CSV file import, Scientific format

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.
0
barkome
Asked:
barkome
  • 2
1 Solution
 
lcohanDatabase AnalystCommented:
I suggest use SQL Import/Export wizard and btw - in EXCEL, just make the columns bigger and you'll see the actual value....
0
 
Dave BaldwinFixer of ProblemsCommented:
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.
0
 
Shaun KlineLead Software EngineerCommented:
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.
0
 
lcohanDatabase AnalystCommented:
how to "Start the SQL Server Import and Export Wizard"
https://msdn.microsoft.com/en-us/library/ms140052.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now