Forum Replies Created

Viewing 15 posts - 1,951 through 1,965 (of 5,685 total)

  • RE: Is there a more efficient alternative to WHILE LOOPS and CURSORS

    Roughly sure this is what you need:

    SELECT

    sv.Broker_NB,

    sv.Contract_NB,

    ahd.WEATHER_STATION,

    sv.FIN_YEAR,

    sv.FIN_MONTH,

    ahd.[Date],

    sv.ACCT_NO,

    sv.BILL_YEAR,

    sv.FROM_DATE,

    sv.TO_DATE,

    ahd.HDD,

    ca.HDDSUM AS TOTHDD

    FROM

    [NADECORP\SNjenga].StagingVolume AS sv

    JOIN

    [NADECORP\SNjenga].ACTUAL_HDD_DAILY AS ahd

    ONsv.Weather_station = ahd.Weather_station

    CROSS APPLY

    (SELECT SUM(HDD) AS HDDSUM

    FROM

    ACTUAL_HDD_DAILY AS ahd2

    JOIN

    StagingVolume AS sv2

    ONsv.BILLDATE_ID = sv2.BILLDATE_ID

    JOIN

    EXISTING_CUST_ALPHA_BETA AS ecab

    ONahd2.Weather_station = ecab.weather_station

    AND ecab.account_number...

  • RE: Is there a more efficient alternative to WHILE LOOPS and CURSORS

    Ow, my head hurts wrapping around this logic. I'll have to come back to it, but for anyone looking for an easier read, here's the query formatted:

    SET @intRowNo =...

  • RE: Are the posted questions getting worse?

    Revenant (1/15/2012)


    The problem, or at least one of the problems, is that the tests are ALWAYS behind the state of the art. We may talk about brain dumps and all...

  • RE: WWBOD

    David.Poole (1/13/2012)


    I think FU$ money probably wouldn't bring happiness to the under 40s. (Spot the bias). I think you need to reach a point in your life where you...

  • RE: WWBOD

    I gotta go with HOW much FU money?

    If it was a little bit, like a year or three off, well, meh. Keep working and take a 3 week sabbatical...

  • RE: Are the posted questions getting worse?

    I need a favor. I'm trying to use Microsoft Connect and I'm... well... really the only time I go there is when someone links a particular issue. I'm...

  • RE: Are the posted questions getting worse?

    GSquared (1/13/2012)


    That's my preference, pretty much spelled out. (I wrote much the same, but with somewhat less detail in the original thread we're discussing.)

    Catastophic disaster to break it up...

  • RE: SQL Agent Job succeeds even though step should fail

    Brandie Tarvin (1/13/2012)


    Evil Kraig F (1/12/2012)


    This is more a linked server than a job issue. The proc itself won't error, so the job is clueless there was a problem.

    When...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (1/13/2012)


    SQL Kiwi (1/13/2012)


    What's the general feeling about asking Steve to remove that "Question for the Experts" thread? +1 vote here.

    Arguments are welcome, but it...

  • RE: Are the posted questions getting worse?

    L' Eomot InversΓ© (1/12/2012)


    Compared to that guy you are perfect model of tact and good manners and politeness - there's just no time I have ever seen a post from...

  • RE: Personal Accomplishments: 8000 posts, 20K+ visits.

    george sibbald (1/12/2012)


    Chuck Hottle (1/12/2012)


    What's a visit?

    thats a good question.

    My visit count is more than double my posts, either some people remain logged on for ever or visits are...

  • RE: Returning a column per date in a range

    nick-1043370 (1/12/2012)


    Speaking for myself I'd rather get something, work out whether it works in the context of the problem, and then re-pose the question if necessary. If someone else suggests...

  • RE: Dropping Image column

    george sibbald (1/12/2012)


    Thanks Craig, always the bearer of good news. πŸ™‚

    There's a reason I'm Evil! πŸ˜‰

    I knew I was going to have to do some more work to actually...

  • RE: SQL Agent Job succeeds even though step should fail

    Confirmed. 2k8 R1 SP3 does NOT fail the query on query timeout through to a SQL 2k5 server. I do not currently have two 2k8 instances to play...

  • RE: Personal Accomplishments: 8000 posts, 20K+ visits.

    Nice Lowell, gratz.

    And yes, you almost always contribute on every post you make, I don't think anyone believes you'd 'pump' the count. πŸ™‚ The Thread doesn't count. πŸ˜‰

    ;WITH post...

Viewing 15 posts - 1,951 through 1,965 (of 5,685 total)