Forum Replies Created

Viewing 15 posts - 20,506 through 20,520 (of 49,552 total)

  • RE: Why index use or not

    Jason-299789 (2/7/2012)


    Hence the question about whether the overhead of the Query Recompile outweighs the associated overhead of paramater sniffing.

    It depends. That's only answer possible. Depends on how expensive the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: AlwaysOn Database Mirroring

    derekr 43208 (2/7/2012)


    The older style database mirroring (as in 2005 and 2008) will still be there as-is, unchanged.

    I thought that a change is 2012 was that the mirror(secondary) database would...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Adding a cluster index to pk that has a unclustered one that is referenced by 10 fk

    No, the foreign keys will not automatically reference it. If you add a clustered index on a column that is already the PK, the only thing that happens is that...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: AlwaysOn Database Mirroring

    First things first...

    It's not Always On Database Mirroring. Database Mirroring and Always On are two different things. The older style database mirroring (as in 2005 and 2008) will still be...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Select query taking more times

    Cool.

    So with Grant's list you have somewhere to start investigating. Post back with more info if you need more help.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: PAGEIOLATCHES

    No way to answer that.

    Those counters are cumulative since SQL started. If the server started last an hour ago, yeah they're high, if the server started 3 days ago, no...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Select query taking more times

    That specific query or any query?

    If that specific query, post it here with exec plan, table and index definitions and someone will take a look. If any query in general,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Select query taking more times

    If you're talking about the execution plan, it means that the query optimiser estimated that the clustered index scan (which is a read of the entire table) was 46% of...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: PRIMARY KEY Vs CLUSTERED INDEX row ordering

    Without an order by the results are returned in whatever order the last query operator left them in. If all the query did was a scan of an index (and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Need help in writing the query

    Cadavre (2/7/2012)


    Shall we get rid of the cursor? Yes, I think we should. 😀

    The recursive CTE is still iterating, it's just a lot more subtle about it.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: DBCC CHECKDB Error

    As I said, you may as well just run CheckDB with repair again since you've already lost data.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Why index use or not

    Cadavre (2/7/2012)


    Try Gail's blog posts on the subject: -

    Part 1[/url]

    Part 2[/url]

    Part 3[/url]

    Well that saves me the effort of finding the links... 😀

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: DBCC CHECKDB Error

    So you discarded an unknown amount of data from your database with no consideration as to the possible consequences or possible alternatives? You have likely lost huge amounts of data...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: MAX

    It's not that max is limited to 5 characters, it's that it is doing a string comparison (the column is varchar), and in string sorting, z is greater than aaa,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Reindexing causing extreme transaction log growth

    cheetahkatsu (2/6/2012)


    1) Should I be running the reindexing stored procedure within a transaction?

    Probably not because that prevents the log from been marked reusable between the individual index rebuilds.

    2) What is...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 20,506 through 20,520 (of 49,552 total)