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
 General SQL Server Forums
 New to SQL Server Programming
 Updating a view

Author  Topic 

scottdg
Starting Member

20 Posts

Posted - 2012-09-11 : 15:27:14
I have a view that has several columns from multiple tables. I added a new column to one of the tables and now I want it to be included in the view. Is there a way of updating the view with just the new column name? Or do I have to re-establish all of the other columns that are in the view as well?

Thanks in advance.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-09-11 : 15:28:40
you need to do ALTER VIEW including the entire list of columns

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

scottdg
Starting Member

20 Posts

Posted - 2012-09-11 : 16:04:36
Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-09-11 : 16:06:42
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -