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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

instead-of-insert trigger on linked servers

Status
Not open for further replies.

cheyney

Programmer
Jul 16, 2002
335
CA
hey guys,

ok, heres my problem. I have a view that has an instead-of insert and instead-of update trigger on it. This works fine if I'm directly connected to the server. I can open up query analyser and call

update view1
set column1 = 'data1'
where columnid = 1

and it works just fine.

The problem comes up when I'm on another server that has the first server registered as a linked server. In this case, I try this query:

update server1.dbo.view1
set column1 = 'data1'
where columnid = 1


and i get the following error messages:

Server: Msg 8180, Level 16, State 1, Line 1
Statement(s) could not be prepared.
Server: Msg 4422, Level 16, State 1, Line 1
View 'ookprint.dbo.qryNaitAccessBus_tblUser' has an INSTEAD OF UPDATE trigger and cannot be a target of an UPDATE FROM statement.


can't figure this one out. Is it trying to do all the preprocessing on the computer i'm running the query on, and doesn't have access to the trigger or something? do updates with linked servers create entries in a temp table and then do an UPDATE FROM call?

Help!

Cheyney
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top