Solved

CSV file import, Scientific format

Posted on 2016-08-31
4
52 Views
Last Modified: 2016-09-15
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
Comment
Question by:barkome
  • 2
4 Comments
 
LVL 39

Expert Comment

by:lcohan
Comment Utility
I suggest use SQL Import/Export wizard and btw - in EXCEL, just make the columns bigger and you'll see the actual value....
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
 
LVL 25

Accepted Solution

by:
Shaun Kline earned 500 total points
Comment Utility
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
 
LVL 39

Expert Comment

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

From time to time, for debugging and troubleshooting your flow at run time you’ll need to check if the variable has the correct value or not, there’re several ways to check for the value of the variables inside the flow, You can add Break Points, a …
My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now