Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 12-11-2007, 12:46 PM Trigger gives error
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
I get the following error when I execute my Insert Trigger:

commit/rollback not allowed within atomic operation trigger stored procedure

The trigger appears to be the problem because if I comment out the last line of the trigger it works. The stored procedure is much more complex but it runs successfully if I harcode the parameter value in. Can someone shed some light on this one please?

This is the trigger:
Code:
DBA.vinTrigger
for each row /* REFERENCING NEW AS new_name */
/* WHEN( search_condition ) */
begin
  declare @datapath varchar(200);
  set @datapath=(select datapath from vinTrigger where ID = (select MAX(ID) from vinTrigger));
  call VINImport(@datapath)
end
SpudNik is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-11-2007, 01:40 PM Re: Trigger gives error
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
What goes on in the VINImport procedure you're calling out to? Maybe a nested transaction?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Trigger gives error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09617 seconds with 12 queries