Advertisement

07.01.2008 at 04:35AM PDT, ID: 23529740
[x]
Attachment Details

Exporting mixed data types to CSV from SQL server 2000 DTS

Asked by fjkilken in MS SQL DTS

Hi
I am exporting data from SQL server 2000 table to a CSV file using DTS.
One column in particular is giving an issue.

It is a serial number column - it can have mixed data types - eg; numeric and alpha-numeric.
This does not cause an issue in SQL, the problem is when I export to CSV file format.

The problem is that when the end-user opens the CSV file, the numeric serial number values are observed in scientific notation, so serial number "3554722212705" gets observed as
"3.55472E+12".

When the end-user imports into their system, the serial number gets imported as "observed" in Excel,
ie; it gets imported in "scientific notation" format, with the last few characters of the serial number being zeroes, so serial number "3554722212705" gets loaded into their system as
something like "3.5547200000".

The format of the serial number field when I open the CSV file in Excel is "General"
When I format the field as a number, then the serial number gets observed correctly.

How can I export this column to CSV file so that it does nor result in being treated in
"scientific notation" format ??

thank

FergalStart Free Trial
[+][-]07.01.2008 at 04:40AM PDT, ID: 21906574

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 04:45AM PDT, ID: 21906597

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 04:58AM PDT, ID: 21906682

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL DTS
Sign Up Now!
Solution Provided By: frankytee
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628