Forum Replies Created

Viewing 15 posts - 11,926 through 11,940 (of 15,381 total)

  • RE: SQL programming comparing list to list

    The point of ddl and sample data is to make it easy for the people helping you. You didn't post ddl or sample data in a consumable format. Think create...

  • RE: SQL programming comparing list to list

    Hi and welcome to SSC!!! I will be happy to help. The first and most obvious thing is that you do not need a loop for this. I can't give...

  • RE: Error: 18456, Severity: 14, State: 5.

    pawana.paul (5/21/2012)


    All,

    I don't see login 'ashok' neither on SQL Instance nor Windows Server.

    That would certainly explain why the attempt is failing.

    Something somewhere is trying to make a db connection with...

  • RE: SCOPE_IDENTITY()

    SCOPE_IDENTITY cannot be returning multiple values. It doesn't work like that. The return type is numeric(38,0).

    http://msdn.microsoft.com/en-us/library/ms190315.aspx

    As Lynn said, if you can provide some details we can provide some help.

  • RE: Case When or Loop based on Complex Logic

    ColdCoffee (5/16/2012)


    Sean Lange (5/16/2012)


    helal.mobasher 13209 (5/16/2012)


    Thank you for bringing this to my attention. Does this look better now?

    Helal

    Thanks for the ddl and sample data. Based on your sample data what...

  • RE: Case When or Loop based on Complex Logic

    helal.mobasher 13209 (5/16/2012)


    Thank you for bringing this to my attention. Does this look better now?

    Helal

    Thanks for the ddl and sample data. Based on your sample data what should the desired...

  • RE: parse string

    Jeff Moden (5/16/2012)


    capn.hector (5/16/2012)


    Sean Lange (5/16/2012)


    OMG :w00t:

    Jeff Moden posted a loop.

    There is only darkness now, there is no sunshine. The mayans were correct.

    Parden me, I must send out...

  • RE: Organically cancel a resultset from proc if rowcount is zero?

    It was a 2 minute brief example of using exists to demonstrate the task at hand. I certainly was not expecting a code review. 😀

    Your points are all certainly valid.

  • RE: How to convert this XML into columns

    njdevils39 (5/16/2012)


    Sean Lange (5/15/2012)


    Sean Lange (5/7/2012)


    You're welcome. Does this mean you finally have your answer? 😛

    I assume by your silence that you did in fact get your issue resolved. It...

  • RE: OR operator precedence

    natha (5/16/2012)


    I was wondering how will be the precedence of operation in following query:

    UPDATE table1 t1

    SET t1.col1 = (SELECT TOP 1 t0.col0 FROM table0 t0

    WHERE t0.date_of_call < t1.date_of_call

    AND (t0.dur_connection =...

  • RE: Organically cancel a resultset from proc if rowcount is zero?

    Here is a simple example using exists to accomplish the type of behavior you are describing.

    alter proc MyProc

    (

    @SomethingElse int

    )

    as begin

    select top 5 * from sys.sysobjects as Something

    if exists(select top 3...

  • RE: Sum

    Why can't you just calculate it? In this case there really isn't much need to calculate it. The formula you showed has only two possible values (0 or 100).

    SUM(NumberOfCases)/SUM(NumberOfCases) *100

  • RE: parse string

    Jeff Moden (5/15/2012)


    Sean Lange (5/15/2012)


    I would suggest that the looping concept above is not going to be very good for performance.

    Actually, that's not true for these types of problems. ...

  • RE: parse string

    OMG :w00t:

    Jeff Moden posted a loop.

    There is only darkness now, there is no sunshine. The mayans were correct.

    Parden me, I must send out an email blast to our...

  • RE: Data Sel Pull

    SQLKnowItAll (5/15/2012)


    We keep trying to fix your code, but you keep posting the same thing. We can't help you if you keep posting the same thing over and over.

    What Jared...

Viewing 15 posts - 11,926 through 11,940 (of 15,381 total)