Forum Replies Created

Viewing 15 posts - 22,591 through 22,605 (of 49,552 total)

  • RE: PF usage Problem

    MasterDB (11/1/2011)


    After setting Max server memory to 28 GB still in the Task manager PFusage is showing as 29.7GB.

    Task manager = pile of lies. Plus what it shows and 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: PF usage Problem

    MasterDB (11/1/2011)


    Ninja:i set max server memory for SQL is 40722MB

    So you've told SQL Server to use 40GB out of the available 32 GB. See the problem with 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: Stored procedure performance

    If you post what I asked for, maybe we can give you some suggestions.

    GilaMonster (11/1/2011)


    Do yourself and us a favour, work out which of the queries in there is 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: PF usage Problem

    How much memory total on the server?

    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 Server exec plans for ad hoc queries filling plan cache

    I would suggest you enable optimise for ad-hoc workloads. Plan guides are not an answer to this kind of problem, unless they're parameterisation ones.

    Edit: hang on... nHibernate by any chance?

    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: Stored procedure performance

    dm_tapas (11/1/2011)


    Please copy it to your SSMS and try to tune it . (SQL SERVER 2005)

    How much are you paying me to tune it? That's easily a day of work...

    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: need help to improve my stored procedure

    Oh, and for transactions and error handling, have a look at this: http://sqlinthewild.co.za/index.php/2011/05/17/on-transactions-errors-and-rollbacks/

    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: need help to improve my stored procedure

    Suitable for your code, that only you can decide. Best - none of them. They all have advantages and disadvantages, you should understand them and be able to decide on...

    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: need help to improve my stored procedure

    You have no transaction in that code, and no error handling. Every statement runs independently and can succeed or fail by itself.

    Read up on transactions, Try.. catch and isolation levels

    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: conversion deadlock - how to address?

    BaldNomad (10/31/2011)


    This makes sense, but begs the question: if the update is taking an S lock because of the preceding SELECT, why does the INSERT need an S lock? ...

    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: conversion deadlock - how to address?

    BaldNomad (10/31/2011)


    Question is, am I likely to fix this deadlock by removing the select statement from this procedure?

    Very likely.

    It's trying to convert an S lock (which the select would 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: DBCC SHOWCONTIG

    anthony.green (10/31/2011)


    I have always been told to try and get a cluster which best suits the business, but I take your expert advise, many thanks.

    There are 2 main schools 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: Reindex failed primary file group not enough space

    Query sys.dm_db_index_physical_stats. Limited mode is good enough. See the page_count column

    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: Identifying who took a database offline

    Ninja's_RGR'us (10/31/2011)


    Tx Gail, 100 MB is still a tiny trace on a busy server... but it's better than 25 mb :hehe:

    Bear in mind that not much is traced, DDL, security...

    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: Identifying who took a database offline

    Ninja's_RGR'us (10/31/2011)


    This of course assumes that over those few weeks, the trace didn't rollover and delete that info (only 25 mb logged IIRC).

    5 files of 20MB each.

    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 - 22,591 through 22,605 (of 49,552 total)