Forum Replies Created

Viewing 15 posts - 1,951 through 1,965 (of 5,678 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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 =...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • 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...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

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