简体   繁体   English

看不到我在SQL Server Management Studio 2008中创建的触发器

[英]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.

相关问题 SQL Server 2008 Management Studio中的触发器 - Triggers in sql server 2008 management studio SQL Server 2008管理工作室-无法查看表,可以运行查询 - SQL Server 2008 Management studio - can't see tables, can run queries 在SQL Server 2008 R2 Management Studio中看不到数据库图 - Can't see database diagram in SQL Server 2008 R2 Management Studio 我在vista 32上安装了sql server 2008 r2,但是找不到sql server management studio - I installed sql server 2008 r2 on vista 32, but can't find sql server management studio 我似乎无法在SQL Server Management Studio中使用外键或触发器创建一个看似简单的数据库关系 - I can't seem to create a seemingly simple database relationship in SQL Server Management Studio with foreign keys or with triggers 无法登录到SQL Server 2008管理Studio - Can't log in to SQL Server 2008 Management Studio 如何在SQL Server 2008 Management Studio中查看表的脚本? - How do I see the script of a table in SQL Server 2008 Management Studio? 我无法使用Visual Studio 2010 Express在SQL Server 2008 R2 Management Studio的表中插入项目 - I can't insert items in table in my SQL Server 2008 R2 Management Studio using Visual Studio 2010 Express 是否可以在SQL Server 2008的同一表上创建2个更新或插入触发器? - Can 2 update or insert triggers be created on the same table in SQL Server 2008? 无法使用 SQL Server Management Studio 2008 添加 SQL Server CE 数据库 - Can't add SQL Server CE database using SQL Server Management Studio 2008
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM