Solved

How do i generate the script for a trigger?

Posted on 2011-09-04
2
200 Views
Last Modified: 2012-05-12
I am using SQL Server 2008.

I have created a database which has a trigger on one of the tables.  When i generate the script for creating the whole database I don't get any TSQL for creating the trigger.

Am i doing something wrong?
0
Comment
Question by:soozh
2 Comments
 
LVL 22

Accepted Solution

by:
pivar earned 500 total points
ID: 36480413
Hi,

In Tools/Options/SQL Server Object Explorer/Scripting, is Script triggers set to true?

/peter
0
 

Author Comment

by:soozh
ID: 36480440
that was it!
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

Suggested Solutions

Title # Comments Views Activity
Row-Level Security 2 32
Log Backup 2 21
TSQL DateADD update Question 4 25
TSQL previous 5 23
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

23 Experts available now in Live!

Get 1:1 Help Now