Forum Replies Created

Viewing 15 posts - 25,381 through 25,395 (of 49,552 total)

  • RE: Estimated No of Rows Vs Actual No of Rows

    Post the plan

    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: kindly give some solution

    Also use char for very small strings. VARCHAR(1) is completely nonsensical.

    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: FULL Recovery mode changed to BULK LOGGED does that break the t-log chain?

    Replication does not depend in any way on recovery model.

    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 ID 6, Page (1:1324) is marked RestorePending

    Restore from a clean backup.

    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: How will you index this query??

    Both of them.

    Edit: As in, I need to see the .sqlplan file for both the queries (not both picture and .sqlplan)

    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: Allocation Errors

    Ok, I checked with an expert on this.

    If this is the only error, then checkDB with repair_allow_data_loss should fix this with no data loss. Take a backup first.

    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: files on RAW device

    Interesting.

    My guess is that it's an optimisation for the TPC benchmarks, not something for normal use.

    Edit: Just checked with ex-MS developer. Several downsides, not something that you should consider 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: Allocation Errors

    p.s. Is this a SQL 2000 upgrade? If so is it a recent upgrade?

    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: Allocation Errors

    As for the table, that's easy (or should be). Take the objectID (1268915592) and query sys.tables. Otherwise what you could do (which should have the same result) is take 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: Allocation Errors

    Not sure about rebuilding, in your case it's the clustered index affected (the actual data in the table). The case in the ref was a nonclustered index (redundant copy 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: Are the posted questions getting worse?

    jcrawf02 (6/21/2011)


    GabyYYZ (6/20/2011)


    Well, MVP is the highest official accolade from MS

    Not sure that's true, MCM would rank higher than MVP, I would think. Depends what you're measuring, I suppose.

    Steak 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: Trigger update

    Why is the trigger not using the deleted/inserted tables? As written it's going to affect the entire table if one row is changed.

    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: What Part is Running

    sys.dm_exec_requests cross apply to sys.dm_exec_sql_text and use substring on the text with the start and end offset. (script is in BoL)

    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 optimize this query

    Jayanth_Kurup (6/21/2011)


    As a first try you could try replacing the subqueries with joins.

    http://sqlinthewild.co.za/index.php/2010/01/12/in-vs-inner-join/

    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: @@TRANCOUNT

    As I said

    GilaMonster (6/21/2011)


    Because the insert starts a transaction and automatically commits it as soon as its finished.

    So you started one (BEGIN TRANSACTION), the insert started one that it autocommitted....

    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 - 25,381 through 25,395 (of 49,552 total)