I don't think you can run an update statement on a view.
If you can update the source table (or tables) that support the view,
then your updates should appear in the view.
Hope that helps.
-Terry
> I don't think you can run an update statement on a view.
Sorry, but that's not correct ;-)
The SQL Server Books Online section "CREATE VIEW" lists the conditions
necessary for a view to be updatable, but you may, nevertheless, have hit
upon the answer to the issue. SQL Server does require a number of conditions
to be satisfied for the a view to be updatable, and perhaps the conditions
were not met in the definition of the view. However, as the original poster
did not see fit to post the table schema or the view, we can only guess :-)
-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.
"Terry" <NTuse...@msn.com> wrote in message
news:55ea4867.02032...@posting.google.com...
I'm quite often wrong about these matters, but that's a new one on me.
I suppose that in updating the view you update the supporting
table(s) too?
--Terry
> I suppose that in updating the view you update the supporting
> table(s) too?
Yup.
-------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
can be cut and pasted into Query Analyzer is appreciated.
"Terry" <NTUse...@msn.com> wrote in message
news:23ae8c87.02032...@posting.google.com...