Whats the use of creating the index

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • garunagiri
    New Member
    • Sep 2006
    • 2

    Whats the use of creating the index

    Hi all,
    I created index for a table.
    But I don't know what's use of that.

    can we use the index as like stored procedures or like query statements?..

    Guidance please.

    Thanks,
    Arunagiri Gunasekaran.
  • almaz
    Recognized Expert New Member
    • Dec 2006
    • 168

    #2
    Originally posted by garunagiri
    I created index for a table.
    But I don't know what's use of that....
    Indexes are used to effectively select data based on some filter criteria.
    You don't have to USE index manually, SQL Server will decide itself whether it is better to use particular index when searching for records in the table

    Comment

    • blackjack2150
      New Member
      • Feb 2007
      • 79

      #3
      Indexes are used to improve the speed of some searching or sorting operations which involve the fields on which you've defined your indexes on.

      Comment

      • garunagiri
        New Member
        • Sep 2006
        • 2

        #4
        Originally posted by almaz
        Indexes are used to effectively select data based on some filter criteria.
        You don't have to USE index manually, SQL Server will decide itself whether it is better to use particular index when searching for records in the table

        Thanks almaz. Its clear for me about the index.

        Now can u say about the use and difference between clustered and non-clustered index ?

        Comment

        • almaz
          Recognized Expert New Member
          • Dec 2006
          • 168

          #5
          Originally posted by garunagiri
          Now can u say about the use and difference between clustered and non-clustered index ?
          I guess Google can answer this question better than me :).

          Comment

          Working...