Solved

How do I delete records from a view in SQL Server 2000?

Posted on 2009-05-06
3
203 Views
Last Modified: 2012-05-06
I tried "DELETE FROM view WHERE field=N'value'" but it gives me this:

view is not updatable because the modification affects multiple base tables.

I don't know where the view takes the records from.
0
Comment
Question by:datalink01
3 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 250 total points
ID: 24314920
you can put an INSTEAD OF trigger on the view.
articles.techrepublic.com.com/5100-10878_11-6113179.html
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 24314923
Why don't you post the View and we may be able to help you more.

What the error message is suggesting to you is that DELETE can only operate on one table at a time.
0
 

Author Closing Comment

by:datalink01
ID: 31578469
N/A
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now