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
 Delete From Problem

Author  Topic 

emilyc
Starting Member

2 Posts

Posted - 2009-03-19 : 10:01:13
I have a view which is created from an inner join on two tables. The tables have no contraint. When I try to delete a row from the view it gives me error. There are no foreign keys in the tables. What could be the problem?

pootle_flump

1064 Posts

Posted - 2009-03-19 : 10:02:18
The error message would be nice - sometimes they actually give you useful information
I would bet you didn't specify the table to delete from, but I'm not a betting flump
Go to Top of Page

emilyc
Starting Member

2 Posts

Posted - 2009-03-19 : 10:05:27
The error message is -
View or Function is not updatable because the modification affects multiple base tables.
Thanks
Go to Top of Page

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2009-03-19 : 10:18:12
Go thru this link. Look for the heading,, <updatebale view>.

http://msdn.microsoft.com/en-us/library/ms187956.aspx
Go to Top of Page
   

- Advertisement -