Forum Replies Created

Viewing 15 posts - 23,191 through 23,205 (of 49,552 total)

  • RE: Row or Page lock ?

    Depends on the number of rows affected, the amount of locks and lock memory already and probably a few other factors.

    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 to link dm_exec_query_stats to

    ahmed_b72 (9/28/2011)


    How can I obtain the hostname and login name for each row in dm_exec_query_stats ?

    Simple. You don't.

    Query stats is just the list of queries that have run in...

    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: Any valid reason to use a unique column in composite index?

    frfernan (9/29/2011)


    I usually try to avoid non-unique indexes, adding the primary key after the key fields; in this case, an index (Col2, Col3, RID) has sense for me. It 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: Can somebody recommend reliable sql backup software?

    islandwino (9/28/2011)


    Absolutely, I know 3rd party backup tool and native has their merits and demerits, I wanna know the specific details. I am newbie to sql backup.

    Then you need to...

    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: Massive Negative performance change for a delete

    Jack Corbett (9/28/2011)


    I proposed disabling and re-enabling (with check) the FK's but the boss didn't like the idea since there is the possibility of concurrent processes. That takes 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: Index Efficency

    Grant Fritchey (9/28/2011)


    Assuming updates to different partitions, no you shouldn't see blocking while those updates are occurring. You can still block within a partition though.

    Though if both cause lock escalation,...

    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: Massive Negative performance change for a delete

    Your row estimation is off, right from the beginning.

    In the index seek on the far right, estimated rows 1, actual 1000. That's having ripple effects the whole way through....

    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: sqlservr.exe Pagefile Usage? And other Memory questions

    jgoodier (9/28/2011)


    While looking at the "Resource Monitor" I noticed that sqlservr.exe has IO on the pagefile.sys files that I have. Why is this? Shouldn't sqlservr page to its own LDF's?

    Errr,...

    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: Writing to the Passive Node

    sickpup (9/28/2011)


    FWIW, I see that you can do multi-site clustering without the SAN,

    Yes, you can, but your inactive node is still inactive. You cannot write to both databases in...

    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: Writing to the Passive Node

    sickpup (9/28/2011)


    GilaMonster (9/28/2011)


    Database mirroring comes to mind. The database on the second server is still unavailable (because it's in the restoring state), the mirroring keeps the two in sync.

    Yeah, 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: SQL Table Index Question

    mjbkm (9/28/2011)


    GilaMonster (9/28/2011)


    From a query window (connected to that database)

    EXEC sp_updatestats

    Or, maybe better

    UPDATE STATISTICS <table name> WITH FULLSCAN

    where <table name> is the name of the table that you did all...

    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: Writing to the Passive Node

    Database mirroring comes to mind. The database on the second server is still unavailable (because it's in the restoring state), the mirroring keeps the two in sync.

    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: SQL Table Index Question

    From a query window (connected to that database)

    EXEC sp_updatestats

    Or, maybe better

    UPDATE STATISTICS <table name> WITH FULLSCAN

    where <table name> is the name of the table that you did all those deletes/inserts...

    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: Massive Negative performance change for a delete

    Jack Corbett (9/28/2011)


    I'll re-run the process to the point of that operator in SSIS and then run this in SSMS to get the actual plan.

    I'll wait for that, because what...

    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: Massive Negative performance change for a delete

    Can you get me the actual plan 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

Viewing 15 posts - 23,191 through 23,205 (of 49,552 total)