Forum Replies Created

Viewing 15 posts - 2,176 through 2,190 (of 5,678 total)

  • RE: Dynamic SQL in a Function (again)

    dan-572483 (12/1/2011)


    What is the best way to run a slightly different query during certain hours?

    I wouldn't vary the query, just vary the association. Easiest way to do...


    - 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: Dynamic SQL in a Function (again)

    CELKO (12/1/2011)


    The Dynamic SQL you posted is an admission of failure and incompetence.

    Don't worry Celko, your continued posting is admission of failure on the part of evolution to remove the...


    - 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: Splitting a Date range

    Ugh, nasty. You need a row-repeater. Which means... To the TALLY!

    Check out the link in my sig on tally tables if you're unfamiliar. They're nothing more then...


    - 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: shrink taking long - suggestions

    fave_dba (12/1/2011)


    We have a request from application team to refresh database for testing. This will be here for a short period and the drive space is low. As you may...


    - 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: Why does this union add so much time?

    brian 20008 (12/1/2011)


    I don't usually work with the XML execution plans so pardon me if it's not a clean post...

    Brian, any chance you can bring up the actual execution plans...


    - 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: Iif parameter not working...why?

    tacy.highland (12/1/2011)


    Is there a better way to do this? I need to set it up like this so one set of report recipients can receive the full report, while...


    - 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: Why does this union add so much time?

    Lowell (12/1/2011)


    where's the link to Gails articles about catch all queries?

    ( -- Get Non-Peer Categories without regard to Assignments

    (esc.statusname != 'PEER' And @FilterAssigned = 0)

    OR -- Get Non-Peer Categories Assigned...


    - 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: Extracting Documents (.pdf, .doc, .xls, etc) stored in image type fields in multiple rows

    Unfortunately, you're going to need to do as mentioned, create a quick software in .NET (and friends) that can create a filestream, and append each row in order and rebuild...


    - 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: Why does this union add so much time?

    brian 20008 (12/1/2011)


    Sorry, both Union and Union All take 5 plus minutes to run.

    Can we see the .sqlplans for the two queries un-unioned and the unioned version?

    Something's just not right...


    - 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: Optimize hint has huge implications. Why?

    nico van niekerk (12/1/2011)


    Of course, I should have attached the OPTIMIZED execution plan, too. Just an oversight, but here it is. This completed in 38 seconds.

    Been there,...


    - 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: How to you insert an SSIS variable into a data flow query?

    Two options. As Elliott already mentioned, you can use a derived column task to include the variable as the column you're looking for before getting to the destination. ...


    - 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?

    Grant Fritchey (12/1/2011)


    Kiara (12/1/2011)


    Brandie Tarvin (12/1/2011)


    Hey, guys. Is Gus gone yet?

    GSquared (12/1/2011)


    - GSquared, RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA,...


    - 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: Problem with incremental load of data in SQL Server 2008

    p-nut (12/1/2011)


    I'm not sure what you are doing, your pseudocode is not making sense to me except number 1. Please include DDL of both tables, sample data, and...


    - 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: Problem with incremental load of data in SQL Server 2008

    Hans80 (12/1/2011)


    Anybody with an idea? The problem looks stupid and the solution will be simple... but I really don't see it...

    Thanks

    What is the variable type you're using to store the...


    - 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: Why does this union add so much time?

    Jason Selburg (12/1/2011)


    A UNION tells SQL Server to exclude any duplicate rows, which in turn requires grouping internally.

    If you are 100% sure no duplicates will occur, then use UNION ALL.

    +1...


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