I made a custom view for a group of three tables. How would I configure the view so that it can be edited by an application using it like a table? I am using SQL Server Studio Express.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to create INSTEAD OF INSERT and INSTEAD OF UPDATE triggers on the view and then write insert and update statements within the trigger to manipulate the data in the 3 underlying tables. See this MSDN article that has a simple example. You’ll find the desired edited values in the special INSERTED table within the context of the trigger definition.