sql small discusion

  • 1)what is covering index?when we use in sql servr?

    2)what dynamic management view and when we use in sql server?

  • homework or interview?

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/

  • asranantha (4/23/2012)


    1)what is covering index?when we use in sql servr?

    2)what dynamic management view and when we use in sql server?

    Do you know how to use google? 🙂 There is lots of information out there on both of these and typing the answers here is really not going to give you what you are looking for. Simple answers below:

    1. A covering index is an index whose key contains all of the values of a query and subsequently does not require reading anything other than the index.

    2. DMVs contain info on lots of stuff in SQL Server and they are used "primarily" for troubleshooting and administration.

    Jared
    CE - Microsoft

  • Do you know how to use google?

    If you check out the OP's other posts (try this link), you'll rapidly come to the conclusion that the answer is 'no'.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

  • Phil Parkin (4/23/2012)


    Do you know how to use google?

    If you check out the OP's other posts (try this link), you'll rapidly come to the conclusion that the answer is 'no'.

    ROFL Ok, adding user to my DNR list.

    Jared
    CE - Microsoft

  • SQLKnowItAll (4/23/2012)


    1. A covering index is an index whose key contains all of the values of a query and subsequently does not require reading anything other than the index.

    Almost, but not quite. The columns don't have to be in the key.

    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
  • GilaMonster (4/23/2012)


    SQLKnowItAll (4/23/2012)


    1. A covering index is an index whose key contains all of the values of a query and subsequently does not require reading anything other than the index.

    Almost, but not quite. The columns don't have to be in the key.

    I assume that included columns could be the addition outside of the key? So basically, it is not the key that matters, but that the index itself with key and included columns can satisfy the query. Right? I should pay more attention here and less to the book I am studying for 70-432. Some stuff s not as clear in there... 🙂

    Jared
    CE - Microsoft

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply