Forum Replies Created

Viewing 15 posts - 34,246 through 34,260 (of 49,552 total)

  • RE: Should I need to shring the log in a simple recovery database?

    emily-1119612 (2/3/2010)


    If I do want to truncate the log after the backup, is BACKUP LOG WITH NO_LOG the correct way to do this?

    No. The DB is in simple recovery. 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: Database Design - Indexes To Create

    EdA ROC (2/3/2010)


    Not sure what you mean by "more selective on its own"?

    More unique.

    There are two queries that I will run, the columns are the same, the order would 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: Query is timing out :( help plz

    We're not asking for the client statistics. We're asking for the IO statistics which are completely different.

    Run the command

    SET STATISTICS IO ON

    Then run the query. The IO stats will 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: Indexing fields for JOINS and WHERE

    Sorry. It can not seek on that index because deleted is not a left-based subset of the index key. Yes, it can use that index for a scan operation.

    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: Indexing fields for JOINS and WHERE

    Digs (2/2/2010)


    BUT what if WHERE clause is only

    Name='Brown'

    That could easily use the composite index on Name, deleted

    or

    Deleted =0

    That, however, cannot.

    How often is deleted filtered on alone?

    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: Are the posted questions getting worse?

    Um....

    http://www.sqlservercentral.com/Forums/FindPost858555.aspx

    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: corrupt index (nonclustered primary key) after 2005 upgrade

    Welsh Corgi (2/3/2010)


    Oracle using the same concept as the later versions of SQL Server.

    Maybe, but that doesn't mean that an article on how to rebuild Oracle indexes 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: Query is timing out :( help plz

    Those aren't IO Statistics.

    For the IO statistics, run SET STATISTICS IO ON, then run the query.

    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: Physically remove record

    milzs (2/3/2010)


    If we can't we'll have to roll the database back to the last backup prior to when the spill occurred.

    That may very well be the only way you can...

    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: corrupt index (nonclustered primary key) after 2005 upgrade

    Not sure what could be happening here, I've pinged a corruption expert to get some advice.

    Just one question first, pick a table that has this problem and run the following...

    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: corrupt index (nonclustered primary key) after 2005 upgrade

    Welsh Corgi (2/3/2010)


    Please rtefer to the following link:

    http://www.cryer.co.uk/brian/oracle/howto_orcl_rbai.htm

    How is an article on rebuilding indexes in Oracle relevant to a SQL Server index problem?

    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: Database Design - Indexes To Create

    Which is more selective on its own? UserID or Activity?

    Other than the cluster (yes, RowID is good as the PK), only two indexes will be needed, not sure yet which...

    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: Doubt on Indec seek and scan.

    http://sqlinthewild.co.za/index.php/2007/11/15/execution-plan-operations-scans-and-seeks/

    http://sqlinthewild.co.za/index.php/2009/01/09/seek-or-scan/

    http://sqlinthewild.co.za/index.php/2009/07/29/is-a-scan-a-bad-thing/

    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: Msg 8909 & Msg 8998: Page allocation errors

    You have what looks like errors in the allocation pages. Because of those errors, checkDB can't do a full check of the DB. There is no repair for this.

    Either restore...

    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 kill Rollback process

    Marios Philippopoulos (2/3/2010)


    Presumably, information about committed transactions that have not yet been written to disk is stored in memory.

    What happens to this information if the computer is suddenly rebooted 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

Viewing 15 posts - 34,246 through 34,260 (of 49,552 total)