Forum Replies Created

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

  • RE: Memory is not releasing and performance issue??

    Ok, and?

    You have to make some effort here. I referred you to a very good book in an earlier post. Have you looked at it?

    What about the wait stats concerns...

    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: Why is my SELECT query slower when the table is indexed?

    raotor (11/11/2011)


    I would've thought that the roolback would take around the same to to revert to the pre-transaction state as it did to reach the point at which the transaction...

    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 Execution Plans

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

    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: Memory is not releasing and performance issue??

    Ok, so it's less than 300. What's normal for your system?

    Frankly it looks like you need to either do some serious tuning of your queries, or you need to get...

    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: Memory is not releasing and performance issue??

    Lavanyasri (11/14/2011)


    Why the SQL server is not releasing the memory ???

    Because it's not supposed to. What you're seeing is the expected, documented behaviour. SQL won't release memory unless it has...

    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: Irregular execution

    Something I keep forgetting...

    If you're on 2008 SP2 or later, you should be able to just add OPTION (RECOMPILE) to that query (the non-dynamic form) and get optimal plans for...

    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?

    SQLRNNR (11/13/2011)


    I find the practice of prefixing with tbl_ just a waste of 4 chars in a table name.

    Likewise and a waste of time when typing in object...

    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: Irregular execution

    Dev (11/14/2011)


    AND (( = @key) OR (@key = ''))

    I guess the line above will lead to Index Scan (or can skip the index).

    AND (( = @key))

    It should go...

    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: Irregular execution

    You'll need to go for dynamic query

    http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/

    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: Please Help

    That's an immensely complex and less efficient way of doing this.

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

    Dev (11/14/2011)


    Never mind. I found the setting to turn on deadlock graphs in sql profiler. Working perfectly now. If anyone else is having this problem, be sure 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: Are the posted questions getting worse?

    That was funny. We managed to say just about the same thing, phrased differently, at the same time.

    I'm getting so used to being misunderstood and outright ignored that it just...

    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: Object Naming Conventions

    Graham-1036457 (11/13/2011)


    I guess the answer is No, there is no Naming Convention, other than the prefix of sp_ for Stored Procs which I mentioned.

    As I said, sp_ is not a...

    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: view time out

    Don't use the view designer (the management studio query windows don't have a timeout set by default)

    Optimise your view.

    Timeout is a client setting, SQL Server itself doesn't have query timeouts.

    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: Object Naming Conventions

    Graham-1036457 (11/13/2011)


    We know that Stored Procedures names are prefixed with sp_

    sp_ means system procedure and a procedure with that naming has special resolution rules intended for system objects. 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

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