how can we create Index on view?

  • how can we create Index on view? Plz give me a small example..

  • CREATE INDEX [NewIndexName] ON [ViewName]([ColumnName])



    Nuke the site from orbit, its the only way to be sure... :w00t:

  • Keep in mind that Indexed views are only supported in the Enterprise Edition of SQL 2000

    [font="Verdana"]Markus Bohse[/font]

  • Also note that there's a long list of limitations and restrictions on what may be in an indeed view (check Books Online) and that the first inde created on the view must be UNIQUE CLUSTERED.

    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 4 posts - 1 through 3 (of 3 total)

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