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
 VIEW

Author  Topic 

rohit_k888
Starting Member

4 Posts

Posted - 2014-04-20 : 03:56:52
Can a view be altered using ALTER VIEW statement?....I found in an article that a view cannot be altered, it can only be recompiled.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2014-04-20 : 04:12:26
yes. you can

Books Online say so. http://technet.microsoft.com/en-us/library/ms173846.aspx


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2014-04-20 : 04:49:03
Post a link to the article.
Either it's wrong or isn't saying what you think it is.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

rohit_k888
Starting Member

4 Posts

Posted - 2014-04-20 : 05:03:27
@nigelrivett.....this is the link: http://www.toadworld.com/platforms/oracle/w/wiki/4635.alter-view-example.aspx
Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2014-04-20 : 05:10:15
That's for Oracle not SQL Server

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

rohit_k888
Starting Member

4 Posts

Posted - 2014-04-20 : 05:20:21
@nigelrivett....so you mean for SQL server it is possible but for oracle isn't?
Go to Top of Page

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2014-04-20 : 05:38:54
Well it is possible for sql server and that article says it isn't possible for oracle.
You can drop and create for both.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -