If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Trigger does not execute

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-11, 06:49
Sally1053 Sally1053 is offline
Registered User
 
Join Date: Dec 2011
Posts: 8
Wink Trigger does not execute

hi

Please review the syntax below for me, it does not execute or give error. How do i check if my trigger are enableb or configured to run.


--DROP TRIGGER User_Defined_field_KAE
CREATE TRIGGER User_Defined_field_KAE
ON [dbo].[AMGR_User_Fields_Tbl]
AFTER
INSERT

AS

INSERT INTO [dbo].[AMGR_User_Fields_Tbl]
(Client_Id,
Type_Id )
SELECT
I.Client_Id,
'1088'
FROM inserted I, [dbo].[AMGR_User_Field_Defs_Tbl] AS A
WHERE I.Type_Id = a.Type_Id
AND A.code_id = I.code_id;

UPDATE [dbo].[AMGR_User_Fields_Tbl]
SET AlphanumericCol = (select USER_PHONE_4
FROM [dbo].[ADMN_User_Details] AS R inner join [dbo].[AMGR_User_Field_Defs_Tbl] AS S
ON S.Description = r.user_firstname + ' ' + r.user_name
WHERE S.Type_Id = 107 AND
S.code_id = 58);
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On