Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Replacing values in all my views

Author  Topic 

pras2007
Posting Yak Master

216 Posts

Posted - 2009-05-21 : 13:02:00
Hello All,

I need to modify a certain fields all my views in my database, does anybody know of a quick way to accomplish this task? Please advice. Thanks.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-05-21 : 14:50:58
You can only edit calculated columns defined in your views.
All views do, is to "relay" information stored in tables.
So if you want to change a column in a view, and the column is not defined in the view, you have two options:

1. Change the underlying table
2. Make the column calculated and defined in the view definition


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -