Forum Replies Created

Viewing 15 posts - 8,341 through 8,355 (of 14,953 total)

  • RE: Lock request time out period exceeded

    Hire someone who knows SQL Server, probably a contractor, and have them look at your database.

    Something is causing the blocks. Till you know what, and solve it, nothing else...

  • RE: Mistake or #Fail

    I'd have to go with "it depends".

    If you're doing the assigned duties of your job correctly and efficiently, but can't do anything beyond that, you're not failing your employer. ...

  • RE: Mistake or #Fail

    ZA_Crafty (9/22/2009)


    my 2c on why this is happening...

    It became simply too easy to ask something on a forum, or search it on google.

    Welcome to the New Generation of IT.

    If you...

  • RE: The Dynamic Tally or Numbers Table

    Lynn Pettis (9/22/2009)


    Jeff Moden (9/22/2009)


    Lynn Pettis (9/22/2009)


    First, leave it to you squeeze another 33% out of a routine, awesome. I'll have to incorporate that change into my code. ...

  • RE: The Dynamic Tally or Numbers Table

    Jeff beat me to the punch on limiting the total number of rows processed as an added speed boost.

    Lynn, try this with the function:

    select *

    from dbo.ufn_tally2(1,-1,1);

    You can correct for that...

  • RE: The Dynamic Tally or Numbers Table

    Jeff Moden (9/22/2009)


    timothyawiseman (9/22/2009)


    Great article Lynn. It seems that even if you aren't permitted to change the schema that if you are going to use it multiple times you...

  • RE: The Dynamic Tally or Numbers Table

    Lynn Pettis (9/22/2009)


    row_number() over (order by a1.N)

    Something I have noticed when working with the windowing functions in queries using them, if the...

  • RE: Index Stats aging very quickly

    I'd also be more inclined to believe that it's either a parameter sniffing problem, or a case of where you really need two different execution plans.

    Have you tried running it...

  • RE: Qry Performance

    Is this part hard-coded:

    (empcode between '99201' and '99205' or empcode between '99211' and '99215' or

    empcode between '99241' and '99245' or empcode between '99354' and '99355' or

    empcode between '99381'...

  • RE: Are the posted questions getting worse?

    Paul White (9/18/2009)


    Whenever I consider writing for SSC, two things put me off:

    1. The submission process itself; and

    2. The daft comments

    Paul

    I must be doing something wrong. I've...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (9/17/2009)


    Hey, one a different subject, how come I haven't seen any responses from the denizens of The Thread regarding the article I had republished here on ssc? ...

  • RE: Deleting Large Number of Records

    Simon-413722 (9/15/2009)


    I've been using pretty much the same concept for data deletion since quite some time ago already. It does the same job as Lynn's code, except done a bit...

  • RE: Deleting Large Number of Records

    Ol'SureHand (9/15/2009)


    rob.lobbe (9/15/2009)


    This works if you are the ONLY one using the database.

    Running in a production system you can't just go about changing the recovery model.

    Not so sure about it.

    MSDN...

  • RE: How To Efficiently Index Using a VARCHAR Column?

    crainlee2 (9/17/2009)


    Any idea why searching with a LIKE clause on an indexed table would be slower than searching with a LIKE clause on a non-indexed table?

    LC

    Can you post both execution...

  • RE: create table, procedure, view on 2 or 3 databases when its created on one database

    It'll have to be a job that runs in those databases, since create/alter commands don't play well with three-part-names.

    Create a job that queries the DDL log for new objects, parses...

Viewing 15 posts - 8,341 through 8,355 (of 14,953 total)