Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 1.0/1.1
Vedere tutti i triggers di un db
lunedì 22 ottobre 2007 - 09.49
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
bluland
Profilo
| Guru
1.149
messaggi | Data Invio:
lun 22 ott 2007 - 09:49
salve,
uso SQL server 2000 e' possibile vedere tutti i triggers associati ad un db?
ops ho sbagliato stanza!!
saluti
--------------------
Vincenzo PESANTE
System Engineer
micto27
Profilo
| Senior Member
385
messaggi | Data Invio:
gio 25 ott 2007 - 04:39
>salve,
>
>uso SQL server 2000 e' possibile vedere tutti i triggers associati
>ad un db?
>
>
>ops ho sbagliato stanza!!
>
>saluti
Se vuoi solo l'elenco può bastare
SELECT triggers.name AS trigger_name, triggers.type, tables.name AS table_name
FROM sysobjects triggers INNER JOIN
sysobjects tables ON triggers.parent_obj = tables.id
WHERE (triggers.type = 'TR')
se invece vuoi vedere anche il codice T-SQL associato ai vari triggers
SELECT triggers.name AS trigger_name, triggers.type, tables.name AS table_name, syscomments.text AS [sql]
FROM sysobjects triggers INNER JOIN
sysobjects tables ON triggers.parent_obj = tables.id INNER JOIN
syscomments ON triggers.id = syscomments.id
WHERE (triggers.type = 'TR')
ciao, Michele
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !