Forum Replies Created

Viewing 15 posts - 2,896 through 2,910 (of 5,678 total)

  • RE: Data for the current week

    LutzM (6/24/2011)


    @craig-2: I strongly vote against any method involving SET DATEFIRST and/or DATEPART(dw)

    One of the (undesired?) side effects: once you have a specific SET DATEFIRST in your batch, any following...


    - 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: Data for the current week

    This is a lot easier if we had some sample schema and test data to show you proven code. See the first link in my signature for help on that.

    Generically:...


    - 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: Regular Audit Analysis

    All the data in the world doesn't have any value if it's not used. In a security context audit data isn't all that useful if it's only examined when an...


    - 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: Replace the variable value with new one (in all SP's)

    jvskarthick (6/24/2011)


    Hi,

    I have a variable and it’s used in my all stored procedure. I want to replace the variable value with new one. Is there a way we can replace...


    - 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: Help Required Pleased: I don't even know how to pharase the question to search for an answer myself :-(...

    tfifield (6/24/2011)


    Craig,

    I've ripped off a lot of your code. Nice to see I got one in!

    Todd Fifield

    :blush: Now, that's a compliment. Thank 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: Are the posted questions getting worse?

    Hm, favorite drink?

    At the moment, that would be a Sake Bomber with Sapporo... at least, that's what I'm looking forward to. I usually drink Stella, Heinekin, or Beck's.


    - 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: Help Required Pleased: I don't even know how to pharase the question to search for an answer myself :-(...

    BCLynch (6/24/2011)


    Craig, I completely appreciate that the solution for 2 states is not the necessarily the optimal solution for n states and that you solved the stated problem.

    If my...


    - 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: Restricting DBA from accessing SQL DB objects

    Oliiii (6/24/2011)


    We've had the same question here a few month ago.

    A provider asked us how they could hide all their design from us (dba), the short answer is they can't....


    - 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: Which one is better select * into # temp from tableA Vs create #temp table insert into...

    Jeff Moden (6/24/2011)


    Craig Farrell (6/23/2011)


    This conversation resparked a curiousity on my part.

    When I run that code as a single unit, it keeps returning the following error...

    There is already an object...


    - 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: Help Required Pleased: I don't even know how to pharase the question to search for an answer myself :-(...

    BCLynch (6/24/2011)


    That's also a really neat solution and, funnily enough, just last night I was pondering how one would handle adding (for example) a "a DO X" in between my...


    - 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: Need some kind of Union in package

    Jayanth_Kurup (6/20/2011)


    Try lookup under the DFT

    Wouldn't work for this. Lookup is a per-row operator and he needs to collapse the rows. The only way to do that is...


    - 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: Reverse arguments in an IN statement?

    GilaMonster (6/23/2011)


    ORs are fully SARGable, they just require a very different indexing setup than AND. http://sqlinthewild.co.za/index.php/2011/05/03/indexing-for-ors/

    Also note that the parser/algebratiser expands IN into a series of OR before optimisation begins.

    Hmm,...


    - 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: not restarting the instance of a database the transactions log will be full?

    :crazy: Erm, um... no?!

    Okay, there's apparently a little confusion here. The log is going to fill, constantly, even over a restart in any recovery mode besides simple. In...


    - 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: Concatenating multiple rows into a string

    I always point folks to this one:

    http://www.sqlservercentral.com/articles/FOR+XML+PATH/70203/


    - 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: Which one is better select * into # temp from tableA Vs create #temp table insert into...

    This conversation resparked a curiousity on my part.

    The following was tested in a 2k8 R1 environment off my local drives. End result, and if you read the notes you'll...


    - 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 - 2,896 through 2,910 (of 5,678 total)