Forum Replies Created

Viewing 15 posts - 391 through 405 (of 480 total)

  • RE: The Optimists

    The usual problem is trying to follow part 1 of rule #2 (follow users' orders) while only bending rule #1 (i.e. a slight performance impact) when you'd really like to...

    Derek

  • RE: T-SQL Query

    I would never rely on a trick based on a particular feature of the data which wasn't relevant to the selection. In my opinion, this is extremely bad practice.

    As written,...

    Derek

  • RE: Linking to next row using a join on row_number()+1=row_number()

    Peso (2)

    create table #t (id int not null, st char(1) not null, date datetime not null, seq int null)

    --

    --.... main fill omitted

    --

    DECLARE@Seq INT,

    @Yak INT,

    @st CHAR(1)

    SET@Seq = -1

    UPDATE#t

    SET@Seq = @Seq +...

    Derek

  • RE: Linking to next row using a join on row_number()+1=row_number()

    Both Jeff's and Peso's queries do not eliminate pairs where the status stays the same. Additionally, as Peso pointed out, Jeff didn't remove the 'pairs' where the ids don't match....

    Derek

  • RE: Linking to next row using a join on row_number()+1=row_number()

    Hi Gsquared,

    Thanks for the hint.

    I tried implementing your use of dense_rank instead of row_number and located an omission in my code. In my version 2, CTE t4 should have group...

    Derek

  • RE: Linking to next row using a join on row_number()+1=row_number()

    GSquared (4/11/2008)


    I used your temp table and test data on 9000 rows, 1000 IDs in #t.

    Here's the query I wrote, based on the description you gave in the original post:

    ;with...

    Derek

  • RE: Linking to next row using a join on row_number()+1=row_number()

    Glen (4/11/2008)


    Can you please add the parameters and settings on your tempdb? Could it be linked to the fact that you are simply hitting an "auto grow" of your tempdb...

    Derek

  • RE: Linking to next row using a join on row_number()+1=row_number()

    GSquared (4/11/2008)


    I could probably help, if you provide the table structure, including indexes, some sample data, and the query you're using.

    Did you read the script? I thought I put everything...

    Derek

  • RE: Upgrading SQL Server 2005

    I got this right and have, in the past, upgraded a trial Exchange Server to full version, so I know it works for some MS software and assumed it would...

    Derek

  • RE: No XP, but Look Forward To 7

    Matt Miller (4/9/2008)


    Consistency is cute, but the optimizer needs to be able to keep up and know what the right way to handle that variable. Jeff stumbled onto one...

    Derek

  • RE: No XP, but Look Forward To 7

    GSquared (4/8/2008)


    On the consistency point, I have enough problems with T-SQL having weird consistency issues already. My (least) favorite example is Replace vs Charindex. One has the parent...

    Derek

  • RE: SQL Server 2005 SP3

    Ziljan4 (4/6/2008)


    Micorsoft SQL Server 2005 SP3 will be available pretty soon.

    Is this just wishful thinking or do you know something?

    Derek

  • RE: Largest Unit

    srienstr (4/4/2008)


    Derek Dongray (4/4/2008)


    No, there is only one type of person in the world: those who count.

    Except of course for Democrat primary voters in MI and FL. :hehe:

    The joke was...

    Derek

  • RE: No XP, but Look Forward To 7

    I haven't used Vista yet, except for a brief trial, but am quite happy with XP, so won't be changing soon.

    On the matter of Consistency. Since Microsoft control the specification...

    Derek

  • RE: Largest Unit

    srienstr (4/4/2008)


    Shaun McGuile (4/4/2008)


    Aleksandr Furman:

    How is that funny?

    Is that not the truth? 😉

    Like the one told to me by an accountant;

    "There are three types of accountant in this world,...

    Derek

Viewing 15 posts - 391 through 405 (of 480 total)