Forum Replies Created

Viewing 15 posts - 18,901 through 18,915 (of 49,552 total)

  • RE: CPU usage for SQL QUERY

    GilaMonster (4/21/2012)


    SET Statistics Time 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: Multiple files for tempdb

    balasach82 (4/21/2012)


    Gail,

    So, now my understanding it that, during reboot, tempdb does make use of model to an extent, but it does not get the size details. Those are got...

    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: CPU usage for SQL QUERY

    SET Statistics Time On

    You can compare the exec plans, but do note that lower cost does not always mean faster query, the costs are estimates created at compile time.

    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: Multiple files for tempdb

    It's a lot more complex than 'TempDB uses model as a template'. TempDB isn't actually recreated on startup. It's just cleared and the contents made the same as model.

    Now,...

    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: Learning checklist for a newbie.

    You can if you want, but there's not huge, massive changes in SQL 2012. Some stuff's changed, lots of new stuff, but the fundamentals are the same. There's no guarantee...

    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: Multiple files for tempdb

    balasach82 (4/21/2012)


    If the SQL is rebooted later as part of regular maintenance, then tempdb would be created by making a copy of model (which is set for 8mb data 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: Member should be able to mark post as "Answered".

    Rohit Khare (4/21/2012)


    Each forum has its own plus and minus. Stack Overflow is not dedicated to SQL Server but a common platform to ask any type of questions.

    I didn't suggest...

    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: Member should be able to mark post as "Answered".

    Rohit Khare (4/21/2012)


    The person asking the question will come to know whether the answer is correct or not by trying out and seeing the output.

    So, let's say there's 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: Learning checklist for a newbie.

    No architecture or internals. Later. Basics first, advanced features, architecture and internals later when you have the basics well covered.

    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: Learning checklist for a newbie.

    If you're fairly new, don't worry about 'mastering' the product. Worry about getting the basics down solid.

    For dev, try Itzik Ben-Gan's T-SQL Fundamentals. Fantastic book

    For admin, try Beginning SQL 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: differing query plans from sql 2000 and sql 2008 R2

    There were massive changes in the optimiser between 2000 and 2005.

    First thing. Update your statistics. SQL 2005+ doesn't effectively use the SQL 2000 format statistics.

    Run an UPDATE STATISTICS <table name>...

    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: Member should be able to mark post as "Answered".

    If you search through the suggestion forum, this comes up every 6 months or so.

    What is the 'best answer'? One of the first rules about SQL is that there's seldom...

    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: 2005 Enterprise Edition - SP3...Database 'In Recovery' after restarting MSSQLSERVER Service...

    Edit: NM, misread.

    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: WHERE (NOT (column_name IS NULL))

    Lynn Pettis (4/20/2012)


    By putting the NOT in the where clause you are basically forcing a table scan.

    Not if there's a suitable index.

    AdventureWorks (of some version or other)

    CREATE INDEX...

    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: WHERE (NOT (column_name IS NULL))

    A recoding is not going to improve performance.

    Perhaps an index on MyColumnName? It'll have to be covering to be of any use if more than about 1% of the table...

    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 - 18,901 through 18,915 (of 49,552 total)