Forum Replies Created

Viewing 15 posts - 61 through 75 (of 196 total)

  • RE: Problem in procedure

    sk.panda (2/11/2010)


    Dear Sir,

    While executing procedure i want the output should display like

    0000001005 1900-01-01 0010 SPLM 6800 ERR MSG 247387 //Desired output

    But now i am getting output(wrong output)

    0000001005 1988 0010 SPLM...

  • RE: Update Query

    If you can't change it, you can do an explicit conversion e.g.

    SET NOTES1 = CONVERT(VARCHAR(50),NOTES2)

  • RE: Problem in procedure

    What is the problem you're still having with the modified code?

  • RE: Update Query

    Do NOTES1 and NOTES2 have the same datatype definition and length?

  • RE: Update Query

    Please check BOL (update statement) and Google before posting your question.

    Try this

    UPDATE t

    SET NOTES2 = s.NOTES1

    FROM TABLE2 t

    JOIN TABLE1...

  • RE: SQL Join Help

    The reason why you go from 121 to 8129 is called the multiplication effect and is indeed caused by joining the inventory table with the order(details) table. If you have...

  • RE: Bit of a noob with some expereince needs help with duplication

    Ok - let's see if this helps.

    Create a staging table (similar to your final table).

    Load it with the flat file using a data flow task.

    Use an Execute SQL Task to...

  • RE: Excel source task fails saying source file does not exist

    Where and when do you get the error? Can you post your package or some screenshots?

    To make the package successful, raise the MaximumErrorCount property at the package level.

    You may also...

  • RE: Bit of a noob with some expereince needs help with duplication

    I'm a bit confused as you use SQL 2005 and DTS in one sentence. Hope you mean SSIS?

    Personally I would solve it as Jeff describes, but if creating the staging...

  • RE: query help required

    Paarthasarathy (2/10/2010)


    Yet another way 🙂

    select A.* from emp A

    where A.datett=(select max(C.datett)

    from emp C

    where A.eid = C.eid

    and C.datett <= '06/06/2006'

    )

    and exists

    (

    select '' from emp B

    where A.eid = B.eid

    and B.act='Y'

    )

    Paarthasarathy,...

  • RE: query help required

    Jeff Moden (2/10/2010)


    Nabha (2/10/2010)


    Maybe I'm missing something but could it be as simple as this?

    Regards,

    Willem

    http://wschampheleer.wordpress.com

    That would give the records even if the employee is not active now.

    ...

  • RE: Formatting results

    There's probably many ways to solve this, but a straightfoward one is to put the line breaks in the ISNULL like this:

    select isnull(@a,'')+ char(13) + isnull(@b+ char(13),'') + isnull(@c,'') +char(13)+...

  • RE: Problem in procedure

    I can't reproduce your error unless I execute the statements one by one. Do you execute all three of them as a single batch? By this I mean either select...

  • RE: Add One Day to a Date

    dateadd in BOL

    and a great post about dates in T-SQL

  • RE: Avoiding a cursor when copying a master-detail structure

    Just for the sake of completeness, here are two more alternatives:

    - Create a view that combines the master and detail table into 1 and use an instead of insert trigger....

Viewing 15 posts - 61 through 75 (of 196 total)