Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to sql express and i want to create a new trigger on my table.

But I found that 'New trigger' button in my table's trigger folder shows Disabled. When I right click on trigger folder it shows 'New trigger' button disabled and in gray color.

Iam using SQL EXPRESS 2014 and management studio 2014. Does anybody have any idea why it is happening so.

Please suggest me some way out.

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 13-May-17 3:48am
v2
Comments
OriginalGriff 14-May-14 2:30am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

You don't need to use the menu item to create a trigger. Just open up a query window and write the create trigger statement there.

To get some help with the syntax you can use a snippet in the editor. Right click on the surface of the query editor and select Insert Snippet and then select Trigger and Create Trigger to get the following code snippet inserted to your editor.

CREATE TRIGGER TriggerName
    ON [dbo].[TableName]
    FOR DELETE, INSERT, UPDATE
    AS
    BEGIN
    SET NOCOUNT ON
    END
 
Share this answer
 
I have the same problem. The "New Trigger..." menu item is greyed out. I'm also using SQL Server 2014 Express. Not sure what's going on here.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900