Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL 2000 View Problem

SQL 2000 View Problem

Scheduled Pinned Locked Moved Database
databasehelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    panalprasad
    wrote on last edited by
    #1

    Hi using SQL 2000 i created a table (let - TA) and its view (sel * from TA) as VA after creating the view, i added one column to TA but the view is not showing it. the view must have to rebuild, in sysColumns it doesn't shown the new col name in view. any easy method there have innorder to rebuild it. Thanks in advance panal

    G C 2 Replies Last reply
    0
    • P panalprasad

      Hi using SQL 2000 i created a table (let - TA) and its view (sel * from TA) as VA after creating the view, i added one column to TA but the view is not showing it. the view must have to rebuild, in sysColumns it doesn't shown the new col name in view. any easy method there have innorder to rebuild it. Thanks in advance panal

      G Offline
      G Offline
      gauthee
      wrote on last edited by
      #2

      If there is a possibilty that the master table changes frequently go for cursors instead of views...

      Gautham

      C 1 Reply Last reply
      0
      • P panalprasad

        Hi using SQL 2000 i created a table (let - TA) and its view (sel * from TA) as VA after creating the view, i added one column to TA but the view is not showing it. the view must have to rebuild, in sysColumns it doesn't shown the new col name in view. any easy method there have innorder to rebuild it. Thanks in advance panal

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        panalprasad wrote:

        any easy method there have innorder to rebuild it.

        Use ALTER VIEW to recreate the view. And, it is considered better practice to actually specify the columns you want to use. Only use SELECT * for quick-to-write ad hoc queries.


        Upcoming events: * Glasgow Geek Dinner (5th March) * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

        1 Reply Last reply
        0
        • G gauthee

          If there is a possibilty that the master table changes frequently go for cursors instead of views...

          Gautham

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          gauthee wrote:

          If there is a possibilty that the master table changes frequently go for cursors instead of views...

          :confused: How would cursors solve the problem?


          Upcoming events: * Glasgow Geek Dinner (5th March) * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups