Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I update multiple tables in a view 1

Status
Not open for further replies.

janwills

Programmer
Apr 3, 2002
8
0
0
US
I am unable to update a view in sqlserver. I get the following message.


Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]View or function 'dbo.VIEW_Milestones' is not updatable because the modification affects multiple base tables

Help.....
 
You can create a "INSTEAD OF UPDATE" trigger on the view, that will fire off when the update statement is called. See Books Online under "INSTEAD OF UPDATE" for more info.

This is the way you update a view that uses more than one table with SQL 2000. You must make sure the "WITH CHECK OPTION" isn't selected, since this doesn't allow view updates.

Good luck,
Ray

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top