Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 7,187 total)

  • RE: Deducing from Wait Stats

    CXPACKET just means you have parallelism.  It doesn't on its own mean you have a problem with parallelism.  Please don't blindly reduce parallelism just for the sake of it.  How...

  • RE: 'Actual Rows' missing in query plans...

    Arsh - Monday, August 14, 2017 2:13 AM

    GilaMonster - Sunday, August 13, 2017 6:00 AM

  • RE: DBCC FREEPROCCACHE

    It may, or it may not.  But if the query covers data that isn't uniformly distributed (lots more Johns than Jims), you're likely to see parameter sniffing.  Setting optimize for...

  • RE: 'Actual Rows' missing in query plans...

    No.  If you're getting the plans by querying the DMVs for the plan cache, those don't have the actuals in them at all.  They never do.  They're compiled when the...

  • RE: DBCC FREEPROCCACHE

    The easiest conclusion to draw is that you had a poor plan for the query you were running.  Once you cleared the cache, the query recompiled with a better plan...

  • RE: Time increments

    Phil Parkin - Friday, August 11, 2017 8:21 AM

    John, Thom, these are not 'calculated fields'. Or perhaps the OP used the wrong...

  • RE: Time increments

    WITH Numbered AS (
        SELECT
             FieldSort1
        ,    FieldSort2
        ,    FieldSort3
        ,    ROW_NUMBER() OVER (PARTITION BY FieldSort1 ORDER BY FieldSort2, FieldSort3) AS RowNo
        FROM #TimeIncrements
        )
    SELECT
     ...

  • RE: 'Actual Rows' missing in query plans...

    Arshad

    The plans that are stored in cache are plans that are used for all executions of a particular query until the plan is evicted from cache.  That's why...

  • RE: Add prefix to results

    t2 36824 - Friday, August 11, 2017 6:25 AM

    When I run this:
    UPDATE Params16
    SET Keycode = LEFT(Keycode,PATINDEX('%!!%', Keycode) + 1)...

  • RE: Combinations question with a twist

    You've posted in the SQL Server 2008 forum.  Is that actually what you're using?

    John

  • RE: Criteria for creation Histogram Step

    Type "algorithm that SQL server uses to determine the RANGE_HI_KEY" into your favourite search engine.  That's what I did, and the second result looked as if it might contain something...

  • RE: Precedence Constraints and Config Files

    Brandie

    Why not create a new variable called @DayNumTarget, set the value of that in your config file, and change the constraint to (@DayNum == DayNumTarget)?

    John

  • RE: Using parameters in Execute SQL Task

    You're getting the error because you're trying to force a result set into a scalar data type.  Result sets can only be fed into a variable with data type Object....

  • RE: Stored Procedure help

    I think Thom has already answered your question.  But I'm not sure what the purpose of your stored procedures are, especially the first one.  It sets the value of a...

  • RE: Stop SSMS providing the server name

    Tom

    I've never needed to do anything like that.  But I imagine there's a registry key somewhere that determines how many recently used servers to remember in the Connect...

Viewing 15 posts - 1,306 through 1,320 (of 7,187 total)