Forum Replies Created

Viewing 15 posts - 7,741 through 7,755 (of 8,416 total)

  • RE: Select from where problem

    Hey Bruce,

    if Col3 is not X, then don't bother filtering

    That assumes that the condition on Col3 is evaluated first and that the condition on Col2 shouldn't be evaluated if the...

  • RE: how to use a column name in argument of top() ?

    Ah. I see.

    This should do the trick, I think:

    -- This table specifies how many rows to return for each row_id in the data table

    DECLARE@Top TABLE (row_id INT NOT NULL,...

  • RE: CXPacket waits when creating an indexed view

    Hey,

    Did you happen to save the actual execution plan? That would make it easy to rule in or out some of the more usual causes (perhaps involving order-preserving exchanges).

    Otherwise,...

  • RE: Scalar UDF Performance Issue

    Yet other options include:

    1. Creating a view (possibly indexed) over PSPerson and adding a column which contains the CASE.

    2. Adding a computed column for the CASE to the...

  • RE: Are the posted questions getting worse?

    Jeff Moden (6/17/2009)


    All they really need to do is make SUM() OVER work according to ANSI standards (or so I've heard). Of course, that particular documented feature change will...

  • RE: Are the posted questions getting worse?

    I used both 2005 and 2008 - though the posted execution plan was from my 2005 instance.

    The fascinating thing, as Barry remarked, is the rows-in-reverse-order thing. I also assumed...

  • RE: T-SQL - What is the output of the statement

    crussell (6/17/2009)


    I tested it on an existing test database table and immediately got an error because I had a trigger on the table. Using a table without a trigger gave...

  • RE: Are the posted questions getting worse?

    GilaMonster (6/17/2009)


    And even then there's still no guarantee that it will work in the next hotfix, CU, SP or version.

    Oh I wouldn't worry about that.

    The good news is that we...

  • RE: T-SQL - What is the output of the statement

    Ray Laubert (6/17/2009)


    Thanks for catching it and letting me know.

    No worries. The answer was still clearly discernible from the information given.

    🙂

  • RE: Are the posted questions getting worse?

    GilaMonster (6/17/2009)


    Weren't you the one who said earlier in this thread that you'd never seen an update that didn't work in clustered index order?

    Yes indeed. And that was rather...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (6/17/2009)


    Flip the order of the tables in the trigger and the the update occurs properly based on the clustered index on the table being updated even with the...

  • RE: one character of data

    Hugo,

    Just for the record, I include myself in the set of members who should submit a question!

    Scary!

    Paul

  • RE: one character of data

    tony.sawyer (6/17/2009)


    Erm - is there a link that we don't have to install an ActiveX control - my network admin isn't keen on that sort of thing...

    Not to my knowledge....

  • RE: T-SQL - What is the output of the statement

    Hmm. I got my point, but two *columns* ???

    Two rows would have been better perhaps?

    Or even two lots of one row?

    Oh well.

  • RE: one character of data

    David Burrows (6/17/2009)


    I don't think it was sloppy at all.

    Don't be put off by the bemoaning of the few. 🙂

    Some QOTD have suffered with the answers but I think that...

Viewing 15 posts - 7,741 through 7,755 (of 8,416 total)