Forum Replies Created

Viewing 15 posts - 13,171 through 13,185 (of 49,552 total)

  • RE: DB mirroring between SQL 2005 and SQL 2008 R2

    Yes, but it's an exceedingly bad idea and it's only supported as part of a rolling upgrade process.

    The mirroring will work, however if that ever fails over then the new...

    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: To Split SP or Not to Split SP

    Yes, you probably do want to split that up.

    This blog post's probably closer than the catch-all one

    http://sqlinthewild.co.za/index.php/2009/09/15/multiple-execution-paths/

    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: Trigger effect

    Why don't you write some code, play with it and see how it works (and see the relevant sections in Books Online)?

    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: check missing index

    Do not automatically create all the indexes that the missing index DMVs suggest, that's a good way to severely over-index and hinder performance.

    Evaluate what the missing index DMVs suggest, examine...

    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: Most recent write or read of tables in the database

    Minor correction.

    That script shows the last read or write since the database last started. It shows no information at all prior to that. Hence if you reboot the server every...

    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: table for inner join

    Doesn't matter

    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: index question

    sqlguy-736318 (5/13/2013)


    I assume the implications are even greater for join columns which should generally be PK's (clustered indexes). Is this correct?

    No. They'll be primary keys on the one side, foreign...

    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: Cross-database query in SQLEXPRESS

    There's no difference in basic querying in Express edition. Providing both databases are on the same instance, that code will work. Check permissions, check that the database name is correct,...

    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: Running DBCC Check on my database

    You'll want to run it on the database, not a single table, so

    DBCC UPDATEUSAGE(CnS_MANIFESTCr)

    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: I would REALLY like some fast help with this problem!

    hamed1337 (5/13/2013)


    Thank you for the tip, i already did that when i saw that you guys aren't supporting SQL 2000.

    It's not us that's not supporting SQL 2000 (can you really...

    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: Partitioning on an existing large production table - how to decide?

    Partitioning is not primarily for performance, have a read through the article I referenced.

    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: index fragmentation

    It's a heap (index 0). You can't reorganise a heap and fragmentation has a very different meaning for a heap than for an index.

    Please post new questions in a new...

    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: Partitioning on an existing large production table - how to decide?

    If you're partitioning solely for performance, don't waste your time.

    https://www.simple-talk.com/sql/database-administration/gail-shaws-sql-server-howlers/

    If you're partitioning for fast data loads and easier maintenance, then the table's insert patterns and the business rules for archiving/deleting...

    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: How to convince people for small changes

    sqlnaive (5/13/2013)


    One more thing, even if these indexes are getting used, the stats from dmv sys.dm_db_index_usage_stats says that index_seek+index_scan_index_lookups are almost none as compared to index_write. The question here 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
  • RE: How to find the time required to complete for a query which is currently running...

    No, because there's no way to estimate that. The query could be blocked, it could have to wait for a resource or time on the CPU, etc.

    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 - 13,171 through 13,185 (of 49,552 total)