Forum Replies Created

Viewing 15 posts - 14,131 through 14,145 (of 49,552 total)

  • RE: Index Selection in SQL Server

    vinu512 (2/27/2013)


    Something that helped you in learning about this when you started.......would be great.

    I learnt mostly by write query, run query, analyse exec 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: unexplained lock escalation - please help!

    aviadavi (2/27/2013)


    I see. well, I'm running it with read uncommitted isolation level. as i don't care few updates will not be performed exactly as i plan.

    Read uncommitted (and nolock)...

    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 Machine\IP

    Query sys.dm_exec_connections for that session_id

    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 SQL Server enable Large Pages?

    Never use task manager to check SQL's memory as it will display incorrect values if you have locked pages enabled (Task manager limitation)

    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 SQL Server enable Large Pages?

    How are you seeing the working set? Let me guess, task manager?

    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 SQL Server enable Large Pages?

    It's not using large pages, don't worry about that. Without traceflag 834 SQL won't use large pages, it enables the extensions, but that's all.

    http://blogs.msdn.com/b/psssql/archive/2009/06/05/sql-server-and-large-pages-explained.aspx <- explained there why you see...

    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: unexplained lock escalation - please help!

    aviadavi (2/27/2013)


    if I will remove the hints, SQL will make up on his own.. and will lock pages/tables as well (this i want to avoid)

    Correct, it will. This 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: Index Selection in SQL Server

    In this case it's simply the smallest index that can be used to satisfy the query.

    Selection has to do with which index can filter the largest number of the where...

    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: Declared Variable in WHERE clause weird behavior

    Parameter sniffing, or lack thereof: http://sqlinthewild.co.za/index.php/2008/02/25/parameter-sniffing-pt-2/

    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't Kill SPID “Transaction Rollback in Progress”

    Welsh Corgi (2/26/2013)


    I have had to restart the SQL Server Service, Set the Database OFFLINE and try to bring it back ONLINE and and force it to recover.

    Just a restart...

    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: Deleting unused objects (tables, SP, UDF etc) not in use

    I suggest you reconsider those queries. 🙂 While it shows all the queries currently in cache, not all plans are cached and not all plans will stay in cache.

    Try something...

    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: Auto growth - intensive?

    david.alcock (2/26/2013)


    Just wanted to ask for confirmation really I read regarding a databases auto growth. Say if it is set to 10% and you experience a fair aount 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: unexplained lock escalation - please help!

    You're probably getting escalation because of the rowlock hint.

    Without the hint, SQL takes locks at whatever granularity it thinks best and escalates to table locks at a specific threshold

    With 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: LDF is IDF instead

    You could call the transaction log file readme.txt if you wanted. SQL doesn't care what the name or extension of the file is in any way.

    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: sqlserver service is not being started

    https://www.simple-talk.com/sql/backup-and-recovery/the-sql-server-instance-that-will-not-start/

    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 - 14,131 through 14,145 (of 49,552 total)