Forum Replies Created

Viewing 15 posts - 24,136 through 24,150 (of 26,484 total)

  • RE: Changing sql keywords to lower or upper

    Broken record time. I wouldn't waste my time reformatting stored procedures just for consistency purposes. I would spend my time on more productive efforts that will have a...

  • RE: Changing sql keywords to lower or upper

    I have to deal with the same thing where I work. If I need to modify a procedure, that is when I make any changes to formatting (capitalization, indention,...

  • RE: Changing sql keywords to lower or upper

    I'm waiting to see why you need to change the case of everything in your stored procs from UPPER CASE to lower case.

    😎

  • RE: 'N' number of usage - Tally Table

    rbarryyoung (10/7/2008)


    Jeff Moden (10/7/2008)


    Heh... some guy had a problem with one of his renegade developers and he asked what he should do about it. Having dealt with a pod...

  • RE: Optimizing a Stored Procedure

    Here's the fall back, "it depends". How wide are the records in the heap/clustered index, how many records in the table, how many records are being returned by the...

  • RE: Database Engine Tuning Advisor

    I'm poor and don't have an MSDN subscription, so I pay "retail" for the developer edition.

    😎

  • RE: Optimizing a Stored Procedure

    True, Gail. I remember, however, when SQL would ignore the indexes entirely if you started a LIKE clause with a wild card and just do a table scan. ...

  • RE: Take a look, and give me any Tip or best practice to make this run faster

    I have to agree with the other posters. I would also look at changes to the entire process over time. This procedure is RBAR (a Modenism for Row...

  • RE: trigger code

    mesql (10/7/2008)


    I have a table called [dbo].[timedes] with 5 columns (id, lastname, firstname, status, modifieddate)

    I want to update modifieddate to today’s date when every there is a modification...

  • RE: Database Engine Tuning Advisor

    Okay, off topic but I need to ask. Where did you purchase your copy of SQL Server 2008 Developer Edition, and how long did it take for you to...

  • RE: Using LIKE with variables in a SP

    At this point, I'd like to to point you in another direction for a moment. Please take the time to read this article, http://www.sqlservercentral.com/articles/Best+Practices/61537/.

    Follow the guidelines in it and...

  • RE: Using LIKE with variables in a SP

    Change this:

    SET @DisplayNo = 'CNST'

    SET @DisplayNo = '''%' + @DisplayNo + '%''';

    SET @Desc = '''%' + @Desc + '%''';

    SELECT @DisplayNo

    to this:

    SET @DisplayNo = 'CNST'

    SET @DisplayNo = '%' + @DisplayNo +...

  • RE: 'N' number of usage - Tally Table

    Jeff Moden (10/7/2008)


    jcrawf02 (10/7/2008)


    Or are we waiting for Porkslinger πŸ˜› to give us another followup article?

    Heh... what an idea... maybe I'll title it "Porkslinger: Have Chops, Will Travel." ...

  • RE: Optimizing a Stored Procedure

    Actually, I believe that indexes will help. I can't remember where I read it, but I believe that there has been improvements in the query engine in SQL Server...

  • RE: Query keeps running

    I can see why this runs fast:

    SELECT * FROM REFERRALS WHERE RECVD_DTTM >= '2008-10-06 23:59:59' AND RECVD_DTTM < '2008-10-05 00:00:00'

    It is executing in 1 second where as

    It won't select...

Viewing 15 posts - 24,136 through 24,150 (of 26,484 total)