[英]Can't see the triggers that I created in SQL Server Management Studio 2008
I created a simple trigger on Albums table. 我在Albums表上创建了一个简单的触发器。 But that trigger is not visible in object explorer in programmability in triggers folder.
但是在触发器文件夹中的可编程性中,该触发器在对象资源管理器中不可见。 I refreshed that folder as well as restarted the SSMS but still no luck.
我刷新了该文件夹,并重新启动了SSMS,但仍然没有运气。 However i can see that trigger under that table in triggers folder.
但是我可以在触发器文件夹中看到该表下的触发器。 Is this a feature or a bug?
这是一个功能还是一个bug?
I am using SQL Server 2008. 我正在使用SQL Server 2008。
The triggers in Programmability is for database triggers ( DDL Triggers ). 可编程性中的触发器用于数据库触发器( DDL触发器 )。 You can view the table triggers ( DML Triggers ) if you expand the table.
如果展开表,则可以查看表触发器( DML触发器 )。 For example, you are looking for triggers for table "students" Follow: expand "Tables"=> Expand "students"=> Here you will find DML triggers in Triggers Node.
例如,您正在寻找表“学生”的触发器跟随:展开“Tables”=>展开“students”=>在这里,您将在触发器节点中找到DML触发器。
Here is where the Triggers for a specific table is located: 以下是特定表的触发器所在的位置:
If you still can't find it, it is likely because you specified 如果你仍然找不到它,很可能是因为你指定了
CREATE TRIGGER X
ON SERVER ALL
Specifying that it is deployed at the server level. 指定它是在服务器级别部署的。
Expand server objects > Triggers 展开服务器对象>触发器
折叠数据库的选项卡,然后刷新(F5)并展开TableName>触发器>这是您的触发器(需要先自动执行才能自动保存。)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.