Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do i generate the script for a trigger?

Posted on 2011-09-04
2
221 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
In this article I will describe the Detach & Attach 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.

860 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