Forum Replies Created

Viewing 15 posts - 19,516 through 19,530 (of 22,213 total)

  • RE: Re: Short-circuiting a query

    I must be regurgitating bad stuff again. Sorry. It's when it's a delimited list that it behaves like that, right?

    However, I did a little looking around IN clauses don't work...

  • RE: Re: Short-circuiting a query

    It depends...

    IN basically is an OR statement. It's one of those hidden RBAR (row-by-agonizing-row, TM: Jeff Moden) operations because it's going to check each row of the IN clause against...

  • RE: Autogrowth - Best Pratice

    ruyfigueiredo (9/30/2008)


    The problem is that the log files increase a lot.

    I have an database with 250MB and a Log File with 24GB.

    After i reconfigure the Autogrowth i have to made...

  • RE: Autogrowth - Best Pratice

    On top of what these guys have very correctly told you, put a limit on the growth of the database so that it won't fill the drive. A full file...

  • RE: modify columns of an existing table

    You'll have to drop all foreign key constraints against the table first by using

    ALTER TABLE OtherTableName DROP CONSTRAINT ConstraintName against all the related tables. Then you can use ALTER...

  • RE: Creating a pseudo column with hard coded values in the result set of SELECT statement

    You have to have a way to differentiate which value belongs with which row. I know this is probably not exactly what you're looking for, but something like this is...

  • RE: Can't understand the problem with this SP

    With these estimated plans, there's almost no difference. Some of the estimated costs are slightly different and the location of the table scan of 'RO' changes between the two, but...

  • RE: How SQL Server performs aggregation and sorting ?

    I guess I don't understand the question. The storage engine does the data retrieval, including sorting and aggregating the data, as you said. What is the concern with where this...

  • RE: Can't understand the problem with this SP

    The proc doesn't look so complicated that a RECOMPILE would take six seconds... Hmmm.... You may have to go to old-fashioned tuning. What do the execution plans look like?

  • RE: Can't understand the problem with this SP

    It sounds like parameter sniffing. Try adding WITH RECOMPILE to the procedure and then run it again. That won't help tune it, but it will prevent you getting a bad...

  • RE: T-SQL

    If it's ASAP, look it up in Books Online. That's what the documentation is for.

    It really depends on whether or not you're calling a scalar or table valued function.

    A scalar...

  • RE: Re: Short-circuiting a query

    Funny that we both fixed the JOIN as well as putting in the IF.

    Well, normally I'd say to stay out of my head, but since you posted first, I'll try...

  • RE: Re: Short-circuiting a query

    jlp3630 (9/29/2008)


    Is there anyway to "short-circuit" a query? The following query generates the same "actual execution plan" regardless of the @brand_id value (null or non-null value):

    DECLARE @brand_id INT;

    SET @brand_id =...

  • RE: Check List for DB Design

    Exactly right.

    It also brings up nullability, which should be used as sparingly as you can.

  • RE: Check List for DB Design

    Oh, and files and file placement. Minimum, split the data and the log to two different drives. After that, it depends on the types of drives you're working with, the...

Viewing 15 posts - 19,516 through 19,530 (of 22,213 total)