Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)

  • RE: Joining two numbers

    thanks you so much for the help!!

  • RE: checking secondary field and replace null value

    Thank you...

  • RE: Remove all data

    Thaks for your answer Tim,

      There are more than 20 Tables and  all foreignkeys are setup for "NO ACTION".... ouch

    We are taking the long road to delete all the foreign...

  • RE: Adding static text to output file

    Ok got it, I just added the text to the select statement,

    select tbl.name, 'static text'

     

    I works for my apllication.

    Cheers

  • RE: Help with formatting data

    So i pop the select case statement directly into my query?

  • RE: Help with formatting data

    Well thank you very much... it could not been easier...this will same me tons of time, before i would massage the data in excel...ouch! Just one more question. Say we...

  • RE: Help with formatting data

    Hmm, nope I did not specify any lengths in the destination text file, I will have to investigate that and see how I am going to go about doing that.

    Thanks...

  • RE: Help with formatting data

    Ok, I ran the query and exported it to a fixed width text file. Now, when i view the text file with notepad++ this is what I see;

    Joe.........Smith.........12.somewhere.street...............crlf

    query:

    SELECT convert(char(9),sa.fname), convert(char(9),sa.lname), convert(char(15),sa.address)

    FROM...

  • RE: Help with formatting data

    Ah ok, then the fix length output in DTS will preserve the field lengths. I will give this a try and see how it works out.

    Thanks

  • RE: Help with formatting data

    duh!!

    It should be like

    Select

    convert(char(9),as.fname), convert(char(9),as.lname), convert(char(9),as.address)

    FROM

     

    Is this the correct syntax?

  • RE: Help with formatting data

    Hi,

    Tnx for reply, If I understand this correctly then after my select statement i then insert the convert statement, so if I have multiple fields I will instert multiple convert...

Viewing 11 posts - 1 through 11 (of 11 total)