Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy triggers from existing database
Message
 
 
À
06/08/2008 00:17:03
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Scripting
Versions des environnements
SQL Server:
SQL Server 7.0
Divers
Thread ID:
01336772
Message ID:
01336846
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform