Re: view object
From: Greg O (greg_at_No-SPAM*NO(SPAM@ag-software.com)
Date: 03/11/04
- Next message: Greg O: "Re: Hidden error kills my transaction. Example."
- Previous message: Jacco Schalkwijk: "Re: Simple query"
- In reply to: ip: "RE: view object"
- Next in thread: Dan Guzman: "Re: view object"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Mar 2004 22:49:56 +1100
Hi,
OK, your taking the wrong approach here. Under no circumstances should you
ever update system tables at all. It is dangerous and a sure fire way to
corrupt your database.
The correct way is to alway recompile your view and stored procedures(SP)
after you update the based tables. When a views and SP are created query
plans are developed for them. It is the query plans that make the view or
SP work so fast. By trying to circumvent this process you run the risk of
slowing if not stopping SQL. Even if you do set the system switch that
would allow you to update the system table I doubt the system you use the
text in sysobject as it would (I think) use the compiled version.
Oh let me repeat something. Under no circumstances should you ever update
system tables at all.
-- I hope this helped Greg O Save HOURS documenting your SQL Server! -- FREE Trial! http://www.ag-software.com/ags_scribe_index.aspx Crosstab Queries without OLAP -- 30 day free Trial! http://www.ag-software.com/xp_ags_crosstab.aspx "ip" <anonymous@discussions.microsoft.com> wrote in message news:B88D1A08-0ADD-48F9-BE1A-E89FABAC2D4E@microsoft.com... > sorry one thing i forgot to explain is .. > the columns information of the view will be stored in syscolumns .. > > but i would like to know how to sync with the base table if the structure of base table is altered, with out droping and re-creating the view. > > thanks..
- Next message: Greg O: "Re: Hidden error kills my transaction. Example."
- Previous message: Jacco Schalkwijk: "Re: Simple query"
- In reply to: ip: "RE: view object"
- Next in thread: Dan Guzman: "Re: view object"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|