Forum Replies Created

Viewing 15 posts - 24,556 through 24,570 (of 49,552 total)

  • RE: Deadlock question

    Post the deadlock graph please

    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: Using show actual execution plan causes increased execution time

    John H Davis (8/1/2011)


    The execution plan for the functions is not included in the execution plan for the query.

    No its not, but SQL still has to track the run-time information...

    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: Deadlock

    A workaround, yes. The only solution, not even close.

    The solution is to identify the cause of the deadlocks and fix it.

    Switch traceflag 1222 on. That will result in a deadlock...

    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: Do not display "1900-01-01 00:00:00.000"

    UPDATE <table>

    SET <column name> = NULL

    WHERE <column name> = '1900-01-01'

    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: More Index Theory Questions

    Where the pk is is utterly irrelevant. It's the clustered index that you need to be concerned about (the pk is clustered by default, but it's just a default)

    Maybe take...

    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: huge log backup after reorg

    frankie11 (8/1/2011)


    (The issue we have is space. If we don't shrink, after reorg, we end up with a big log file, which in turn breaks Log Shipping)

    A large log file...

    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: Do not display "1900-01-01 00:00:00.000"

    If the datetime is null, SQL will display it as null. It doesn't automatically convert any null value to a non-null value. Something in the query or the display 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: Using show actual execution plan causes increased execution time

    Ninja's_RGR'us (8/1/2011)


    Reallllllly old broken down laptop or the new monster you just bought?

    The machine that I just replaced.

    I dunno if you'd call a Core-2 Quad with 2GB RAM 'broken down'

    I...

    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: Using show actual execution plan causes increased execution time

    Ninja's_RGR'us (8/1/2011)


    GilaMonster (8/1/2011)


    Yes, it does cause a query to run longer. To return an actual execution plan, SQL has to track things during query execution that it doesn't normally track....

    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: Using show actual execution plan causes increased execution time

    Yes, it does cause a query to run longer. To return an actual execution plan, SQL has to track things during query execution that it doesn't normally track. That means...

    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 recreate a database in sql server 2008 express from sql server 7?

    You need an instance of SQL 2000 or SQL2005. Restore the SQL 7 database there, change the compatability level to 80 or 90. Take a backup, restore on the SQL...

    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: The transient database snapshot for database 'DB1' (database ID 5) has been marked suspect due to an IO operation failure.

    sql.monkey (8/1/2011)


    That is not always feasible or practical with multi terabyte databases, it requires extra hardware and on very large systems (and ours is approaching 10tb, we already have an...

    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: The transient database snapshot for database 'DB1' (database ID 5) has been marked suspect due to an IO operation failure.

    sql.monkey (8/1/2011)


    So how are we supposed to check consistency now?

    Restore a backup onto a secondary server and checkDB that. It's the recommended approach for large, active databases due to 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: Log shipping error in sql server 2005

    That's a warning from some monitoring tool, it's not an error and it has nothing to do with log shipping. Check the monitoring tool you're using.

    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: update statistics?

    It is a good idea to have a second update statistics step, set update the column statistics only with fullscan. While the index rebuilds will update the stats associated with...

    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 - 24,556 through 24,570 (of 49,552 total)