Forum Replies Created

Viewing 15 posts - 2,836 through 2,850 (of 22,220 total)

  • RE: Very strange execution plan estimated rows was really large

    DBA328 - Tuesday, December 11, 2018 2:23 AM

    Just curios about following execution plan, one nested loop with two input (one estimated rows:3381...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Looking to downgrade our SQL Server editions from Enterprise to Standard Edition

    That's a lot of down time. Doing a side-by-side install  would allow you to set up mirroring to migrate between the servers minimizing downtime. Further, that method means that you...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: blocking for same query on user DB

    sqlguy80 - Wednesday, December 5, 2018 7:42 PM

    Hi Grant ,
    Changing Cost threshold of parallelism from default 5 to 50, fixed this...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Clustered Index Scan vs Seek

    Sridhar-137443 - Tuesday, December 4, 2018 9:22 PM

    Hi Grant,It is a simple query. Let’s say I have table A with columns Id,...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Clustered Index Scan vs Seek

    Not seeing the query or the structure, my answer is going to be vague.

    In general, yes. Situationally, a seek is better than a scan. However, it really depends...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Is it possible to restore database with smaller size than source?

    There isn't a way to do this with backup and restore. The entire idea of the backup is that it is a full copy in every possible regard of the...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Lack of clustered index generally a good idea?

    If something is difficult, the best possible solution to that difficulty is to just not do it... said no one who accomplished things.

    Yes, choosing the right clustering keys...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: deadlock issue : clustered index vs read uncommitted level

    So, without seeing the details, this is a speculative answer.

    All deadlocks are fundamentally performance issues. If the transactions clear fast enough, you'll never see a deadlock. So, if...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: restore backup of SQL server 2008 ENT edition backup on SQL 2016 STND edition

    Lynn Pettis - Friday, November 30, 2018 1:22 PM

    Grant Fritchey - Friday, November 30, 2018 10:34 AM

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Get list of queries causing recompiles

    I don't know SentryOne well enough to tell you what it shows.

    You can use extended events to capture recompile events. This blog post will show one...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Database Performance slowness issue

    This is a huge topic.

    First, I'd suggest capturing query behavior using extended events. You can see all the calls made to the database and determine which specific calls...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Type conversion may affect "CardinalityEstimate" in query plan choice

    That warning is only a problem when you're filtering on the values. If you're simply retrieving the columns (JSON or not), it shouldn't negatively affect you. I'd still follow Lynn's...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: when to use clustered vs nonclustered indexes

    This is a long and involved topic. I'll try to keep it short and focused. A clustered index is not simply an index. It also defines the storage of the...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • RE: Capture all SQL Connection to table and schedule a job

    hello_san - Thursday, November 29, 2018 12:13 PM

    Does anyone have a script to Capture all SQL Connection to table and schedule a job...

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Viewing 15 posts - 2,836 through 2,850 (of 22,220 total)