problem stmt: data convert in to text format while importing in to Excel Sheet using data flow Task.

Who is online?  0 guests and 0 members
Home  »  Forums   »  microsoft business intelligence   »  integration services   » problem stmt: data convert in to text format while importing in to Excel Sheet using data flow Task.

problem stmt: data convert in to text format while importing in to Excel Sheet using data flow Task.

Topic RSS Feed

Posts under the topic: problem stmt: data convert in to text format while importing in to Excel Sheet using data flow Task.

Posted: 10/4/2011

Jedi Youngling 4  points  Jedi Youngling
  • Joined on: 10/4/2011
  • Posts: 2

HI,

      I am importing data from sql(SQL2007) table to Excel file(office 2007) using the Data flow Task.

After importing data ,i m not able to make calculation,because all the data convert in to Text formate.

For Example:I have table called "Employee Detail" with two column:

Employee Name          salary

A                           56.77

        b                            23.44 

        C                             45.67

 

Now I will import all record in to Excel File using the DFT.

there are two ways:Generate the Excel file dynamically or Create a Excel Template.

I try both ways,but Still  salary column data import as a text,because of that i am not able to make calculation on Excel.


Posted: 10/6/2011

Padawan 1390  points  Padawan
  • Joined on: 1/30/2010
  • Posts: 34

Check the meta data in the flow and make sure the source data is truely numeric. If it is, then it shoud export to Excel that way, at least I have never had that problem. You may need to recreate your destination Excel sheet with the correct data type.


Posted: 10/11/2011

Jedi Youngling 4  points  Jedi Youngling
  • Joined on: 10/4/2011
  • Posts: 2

Hi Tim,

    Thanks for reply.

    My Source is Decimal like (2348.456),even if my source is int ,data is move as  a Text formate only.I also change the destination Excel column Property to data type number.

Yes,if i put the number like (00.00) in the first row in my destination excel template then all the row's for that column act as a number ,and i am able to make calculation,but unfortunately that is not the solution of my problem.

1.Chk the Sequence:package

1

2.Create the Dynamic Excel File :

create dynamic excel File

3:Oledb Source is 

select
FirstName,MiddleName,LastName,BirthDate,Gender,EmailAddress,
GeographyKey as YearlyIncome
from DimCustomer

in the DFT 

4.Data conversion:

data conversion

5.destination destination


Page 1 of 1 (3 items)