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
 SQL Server Administration (2005)
 How to tell if a VIEW is updateable

Author  Topic 

Van
Constraint Violating Yak Guru

462 Posts

Posted - 2007-10-11 : 13:17:54
I could have swore I posted this earlier today, but it must not have went through...anyway here goes again.

Is there any way to tell if a view is updateable (updates the underlying table(s))?

Thanks,

Van

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-10-11 : 13:38:48
Even if a view is updateable, it will only update one table.

I'm not sure how you'd be able to tell if a view is updateable though. That property doesn't exist in OBJECTPROPERTY or OBJECTPROPERTYEX functions.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Van
Constraint Violating Yak Guru

462 Posts

Posted - 2007-10-11 : 13:42:41
So if a view has more than one table in it's definition, then you can be assured that it won't update either table correct?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-10-11 : 23:20:58
You should be able to update columns in single table as I understand
Go to Top of Page
   

- Advertisement -