We help IT Professionals succeed at work.
Get Started

What is danger of DML thru a view?

Eric3141 asked
Last Modified: 2012-05-12
At some class I attended years ago I was told that update, insert, or delete through a view was not a wise thing to do.  I am aware that I can use a trigger to prevent this or I can include a GROUP BY clause in the view definition and include every column in the Select statement to prevent it.  Before I do this I want to ask what the dangers are and what your opinion and experience has been.

Also, if I allow UPDATE but disallow Insert and Delete is that acceptable in your opinion?

Thx in advance.

Watch Question
Top Expert 2011
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE