Gordon- I am importing a CSV file and I am getting a type conversion file
error on one of my
fields (a upc file). I need that filed to be imported as a nvarchar (text
format)...
I brought the file into excel and tried to convert the data to text and it
looked like
8.81E+10 and will not work for my SQl link....
One way: In a new workbook choose Data > Import External Data > Import
Data, select text files from the drop down and locate the .csv file
then set Text as the data format for the column in the wizard.
Hi Brent - A general way to convert a column of numbers to text is:
Data>Text to Columns>Next>Next>Text on that column.
(Assuming tab-delimited as default)
Note however that Excel has an accuracy of 15 digits so if your csv
file contains longer strings of digits they will be rounded.
In that case you should convert the column before opening in Excel as
suggested above. Another option is to change the .csv extension
to .txt so that you get the import wizard when you open the file from
Excel.
I'm having a similar problem except some of the data in the problem columns
is showing the entire number and some of it is showing up in scientific
notation. I have tried resizing the column and all of the suggestions posted
on this thread to no avail. Does anyone have any other ideas on how to fix
this problem?
I'm saving the file from an xls format to a csv format. when I open the csv
I see the scientific notation. Some of the numbers are quite long. They are
account numbers. In the original xls file they are showing up the say way.
Correction: In the original xls spreadsheet some of the data is showing up
with the green arrow in the upper left corner of the cell. If I choose
"convert to number" I then get the scientific notation.