Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy triggers from existing database
Message
From
06/08/2008 09:30:42
 
 
To
06/08/2008 00:17:03
General information
Forum:
Microsoft SQL Server
Category:
Scripting
Environment versions
SQL Server:
SQL Server 7.0
Miscellaneous
Thread ID:
01336772
Message ID:
01336846
Views:
20
>Hi All,
>
>Newbie Question:
>
>I have a test database that does not not include the triggers that are present in the production database.
>What is the best way to copy all the triggers from the production DB and apply them to the test DB?
>
>TIA,
>
>Andy

Hi Andy,

To get a list of the triggers you can use
-- Give the list of all triggers in the database
SELECT  tablename = object_name(parent_obj), name
FROM    sysobjects
WHERE   type = 'tr'
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform