view or select statement...which is better?

  • Grant Fritchey (2/10/2009)


    Yep, Gail's right on this one too (you can usually just assume that).

    :hehe:

    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
  • Bruce W Cassidy (2/10/2009)


    [font="Verdana"]Gotcha. I did a little subsidiary reading on Books Online, and you're quite right -- cached query plans don't apply for views.[/font]

    May I very politely and with the greatest respect suggest that it may be a better plan to read first and post second? 😉

    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 (2/10/2009)


    May I very politely and with the greatest respect suggest that it may be a better plan to read first and post second? 😉

    [font="Verdana"]Fair comment. Shamefaced[/font]

  • Bruce W Cassidy (2/10/2009)[font="Verdana"]


    Fair comment. Shamefaced[/font]

    No worries. We've all done the same thing on occasion.

    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
  • Thank guys for the explanation....I did learned a lot from it.

  • Its also depends on where you want to use this!! if it in the application then i would recomed to use View.

    Thanks -- Vijaya Kadiyala

    http://dotnetvj.blogspot.com

Viewing 6 posts - 16 through 20 (of 20 total)

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