dts transfer problem

  • hi friends

    Daily i need to give some daily report to some dept

    So I kept some job for taking the report ..in that I am using import and export wizard to transfer data from temp table to excel

    Everything is fine but in excel , all varchar data have single quotation in first char of the data so we facing problem..

    Please help me

    I forward the excel also

  • Basically this is Excel feature that it puts a single quotation mark before any thing that seems to be anonymous data type to Excel. Single quotation mark tell excel that the data to be displayed as text, not as any formula or number etc.

    I don't know, how you have configured your DTS package, however, in DTS package, you can specify the data type for the columns. You need to make sure that you specify data type in DTS package, and also configure excel column for same data type, in your case it should be TEXT i guess.

    If still it does not work, then probably you may need to give some details about your dts package, including the step that brings data from source to target.

    Swarndeep

    http://talksql.blogspot.com

  • hi Swarndeep

    thanks..

    today i changed the datatype to text ..but no use

    i am using dts normal paclage

  • What I would do is create a DTS package witht he Excel source and SQL destination and define your transformation as a "ActiveXScript" and then use vb script to strip out the single quotation marks in the xls column (Source).

  • thanx

    please can u give the vb script

    i will try with the vb script

  • I went back and read your post again. Sorry I misunderstood your original quesion. So you have a source SQL temp table and you need to export those results to excel?

    From what I understand the single quotation that you get in the excel sheet is due to the formatting options in excel.

    The only thing that I can think of is maybe to create a script in excel to change the column format of the data after the DTS runs

  • Is it resolved? Whats the data type of the source column tht is causing problem in excel?

    MJ

  • hi this is not solved .. problem is coming for varchar,nvarchar,char data type ..please give solution

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply