![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
1. Where are triggers shown on the Object Explorer in SSMS? I thought they would be listed under "Programmability ... Database Triggers" but they aren't there. That's where they are listed. Did you d a refresh after creating the |
|
2. Is there a GUI to create a trigger, like there is to create a table? I've been using straight SQL for this. Don't think so, but using straight SQL for this is a good idea anyway. 3. How do you modify a trigger? I've been using sp_helptrigger to get the trigger name (since I can't find it anywhere in SSMS), and then sp_helptext to get the SQL of the trigger. |
|
Thanks, Dom |
#3
| |||
| |||
|
|
On 27-04-2011 15:02, Dom wrote:> 1. *Where are triggers shown on the Object Explorer in SSMS? *I thought they would be listed under "Programmability ... Database Triggers" but they aren't there. That's where they are listed. Did you d a refresh after creating the trigger? 2. *Is there a GUI to create a trigger, like there is to create a table? *I've been using straight SQL for this. Don't think so, but using straight SQL for this is a good idea anyway. 3. *How do you modify a trigger? *I've been using sp_helptrigger to get the trigger name (since I can't find it anywhere in SSMS), and then sp_helptext to get the SQL of the trigger. alter trigger <triggername> ON DATABASE FOR <ddl_action> AS print 'this is a database trigger' See also my answer to 1. Thanks, Dom Best, Henk |
#4
| |||
| |||
|
|
3. How do you modify a trigger? I've been using sp_helptrigger to get the trigger name (since I can't find it anywhere in SSMS), and then sp_helptext to get the SQL of the trigger. |
#5
| |||
| |||
|
|
3. How do you modify a trigger? I've been using sp_helptrigger to get the trigger name (since I can't find it anywhere in SSMS), and then sp_helptext to get the SQL of the trigger. |
#6
| |||
| |||
|
|
Yes, I did a refresh on the "Database Triggers", and each of the higher nodes, ("Programmability", etc.). Nothing shows up there. I guess of all my questions, you've answered all, but I still don't see a list of the triggers. Any ideas? |
#7
| |||
| |||
|
|
On 27-04-2011 15:26, Dom wrote: Yes, I did a refresh on the "Database Triggers", and each of the higher nodes, ("Programmability", etc.). *Nothing shows up there. *I guess of all my questions, you've answered all, but I still don't see a list of the triggers. *Any ideas? Just to cover all the bases: when you close SSMS and then re-open it, do they show up? |
#8
| |||
| |||
|
|
On Apr 27, 9:30*am, Henk van den Berg <hvandenb... (AT) xs4all (DOT) nl> wrote: On 27-04-2011 15:26, Dom wrote: Yes, I did a refresh on the "Database Triggers", and each of the higher nodes, ("Programmability", etc.). *Nothing shows up there. *I guess of all my questions, you've answered all, but I still don't see a list of the triggers. *Any ideas? Just to cover all the bases: when you close SSMS and then re-open it, do they show up? Nope. *I'm really stumped on this. |
#9
| |||
| |||
|
|
Nope. I'm really stumped on this. |
#10
| |||
| |||
|
|
1. Where are triggers shown on the Object Explorer in SSMS? I thought they would be listed under "Programmability ... Database Triggers" but they aren't there. |
|
2. Is there a GUI to create a trigger, like there is to create a table? I've been using straight SQL for this. |
|
3. How do you modify a trigger? I've been using sp_helptrigger to get the trigger name (since I can't find it anywhere in SSMS), and then sp_helptext to get the SQL of the trigger. Right-click a trigger in the Triggers node and select Modify |
![]() |
| Thread Tools | |
| Display Modes | |
| |