Forum Replies Created

Viewing 15 posts - 5,131 through 5,145 (of 5,678 total)

  • RE: help needed with datetimes

    Why does oldLocal have 16.00 and a real datetime value in it? Barring the rest, what are the non datetime values supposed to mean? You're overloading the column,...


    - 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: Stored Procedure Takes long time on one Server, but quick on another

    mymail.default (11/1/2010)


    Craig,

    I will do it now, but just to make sure I understand:

    This change is going to go on the test system right, and being executed on the test system...


    - 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: Service Broker Confusion

    SwedishOrr (11/1/2010)


    I meant that if one of the activation procedures was receiving and processing messages until the queue was empty, would the others be able to receive and process messages...


    - 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: PARSING a Concatenated string into columns

    SQL33 (11/1/2010)


    A real puzzler for me.... I don't know how I'd create a test table for someone to play with from this.. but here's my question. The text...


    - 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: Service Broker Confusion

    Each message in the queue is supposed to be either unique, or your procs are supposed to deal with them in conversations. So, each of the queue's only deals...


    - 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: Finding Sequences (Need help ASAP)

    Sorry for the slight necro, was a heck of a 2 weeks and catching up on some older stuff.

    Jeff Moden (10/16/2010)


    I just ended up writing about it in a very...


    - 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 needed with datetimes

    Naidu,

    Let's figure a few things out here. First, if you could take a look at the first link in my signature, and setup DDL and sample data that way,...


    - 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: Crazy Index Issue

    It will seek when selectivity makes sense for it. Now, can you give us more context of if this is the same proc/query on both servers? You might...


    - 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: Find the latest value of each column based on row_number rather than max or min!!?!

    Try this:

    Be aware, this uses a serial updating methodology and I don't always follow every rule from Jeff's Quirky Update post here on SSC. This will work, however, as...


    - 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: Case statement won't work in grouping

    Something like this, perhaps?

    SELECT

    Code,

    MaxTime,

    CASE WHEN CODE = 'XX' AND MaxTime >= '2010-10-02' THEN 'DELAY'

    WHEN CODE = 'XY' AND MaxTime >= '2010-10-05' THEN 'DELAY'

    ELSE 'SUCCESS' END AS SuccessDelay

    FROM

    (SELECT

    Code,

    MAX( [Time]) AS MaxTime

    FROM

    #Temp...


    - 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 needed with datetimes

    Problem is this portion of your query, in regards to the error:

    (select ("timestamp") from X where refeventid=b.refeventid

    and "timestamp"< b."timestamp")

    It needs to return a single entry for the function, 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: Most efficient method of getting min values for a set

    James, thank you for the kindness. It's appreciated... especially recently.

    Hahah, okay, now that the selectivity is frying the 0.3% rule (1 day in a year, as a rule of...


    - 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: Find the latest value of each column based on row_number rather than max or min!!?!

    An alternative is going to be a #tmp with specific indexes using the Quirky Update method, inverting the row numbering, using quirky to carry values down the nulls, then inverting...


    - 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: Most efficient method of getting min values for a set

    WayneS (11/1/2010)


    Craig, I guess you whopped up on me! Only 40% of the time of mine... very good.

    Well, every now and then I get lucky. :w00t: Honestly though, 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: Stored Procedure Takes long time on one Server, but quick on another

    Were you able to try this in a copy of the proc?

    SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;

    I'm curious if we can completely absolve the system of the locking issue.


    - 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,131 through 5,145 (of 5,678 total)