Forum Replies Created

Viewing 15 posts - 5,521 through 5,535 (of 5,678 total)

  • RE: Put logic inside Execute SQL Task or call sproc?

    My preference has, and almost always will be, SPROC if there's logic involved if I can get away with it. Primarily so that I only have to re-deploy a...


    - 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 2008) t-sql concurrency question.

    BarkingDog, the reason Jeff's solution is better then mine/ours is speed. His update method gets in and out in one action, whereas the select/update pair takes two. 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: (sql 2008) t-sql concurrency question.

    Jeff Moden (9/19/2010)


    Heh... I'm just a step behind you on my posts...

    I've got the advantage, I'm west coast, so it's not beddie bye time for me yet, so I'm still...


    - 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 2008) t-sql concurrency question.

    Jeff Moden (9/19/2010)


    Ah... to be sure... the "Kalpa Shah" that I refer to in the revision history was one of the two Systems DBA's I was working with on this...


    - 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 2008) t-sql concurrency question.

    Barkingdog (9/19/2010)


    Jeff,

    My solution is the same as yours except I used:

    SELECT @return= NextID FROM seqNum with (UPDLOCK)

    Actually, that was me. Jeff's solution is much more elegant.


    - 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 2008) t-sql concurrency question.

    Ah, that makes sense, you're avoiding the necessity of the double call by using the running total method that's undocumented.

    Btw, if you force the tablockx, you won't get...


    - 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 2008) t-sql concurrency question.

    Jeff Moden (9/19/2010)


    Dang... I reviewed an article for someone on Sequence tables and now I can't find it.

    At any rate, the WORST thing you could possibly do is use a...


    - 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: Shouldn't the trans log backup be truncating my log file?

    You should be able to build a maintenance plan to do all that for you, and then automate it via SQL Agent.


    - 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: Shouldn't the trans log backup be truncating my log file?

    Gail *may* have gone to bed already, she's across the pond, so I'll try to help in the meanwhile until she can bring her expertise back to bear. 🙂

    This article...


    - 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 Server DB Tools

    I agree with George above.

    Most of the tools you see out there are for either complex, highly repetitive and annoying tasks you'd do against incredibly large database networks, or to...


    - 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: Large Chunks of Data

    Jeff Moden (9/19/2010)


    We gave the users their own "report" server and we updated it every night at midnight with one of those very nice EMC clone/snapshot updates. And, believe...


    - 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: SUM multiple Columns

    Because you're selecting these columns directly: ListingID,StreetAddress, City, [State]

    They will need to be in the group by clase. Emaliagent and the rest shouldn't be. Think select distinct. ...


    - 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 2008) t-sql concurrency question.

    You're absolutely correct, and it may be that I've made a poor assumption. Let's take one extra step back. What are you using this counter for? I...


    - 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: Deadlocking in stored proc calls (sql 2008)

    Barking, if you'll look in the other thread you posted regarding transactions, you'll notice a discussion, and explaination/workaround, to this.

    EDIT: Allow me to extrapolate slightly since this part wasn't covered...


    - 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: Converting a table variable into a permanent table

    Jamie Julius (9/19/2010)


    Rather, it is the heavy disk activity, which is hindering the execution of all other concurrent activity and causing the SELECT INTO to take a couple of minutes.

    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

Viewing 15 posts - 5,521 through 5,535 (of 5,678 total)