SQL 2000 - 企业管理器和触发器
我们使用SQL 2000企业版。
我们注意到,当我们使用企业管理器进行数据更改时,触发器不会执行。也就是说,我们执行“选择”查询,然后直接在网格结果表中编辑结果。该触发器是有效的,因为如果我们运行更新查询,它会按预期执行。
我只是想知道这是否是预期的行为。企业管理器如何在不执行触发器的情况下更新数据?
多谢。
We use SQL 2000 Enterprise Edition.
We have noticed that the triggers are not executed when we make data changes using the Enterprise Manager. That is, we execute a "Select" query, and we edit the results directly in the grid results table. The trigger is valid since it is executed as expected if we run an update query.
I am just wondering whether this is an expected behaviour. How does the Enterprise Manager manage to update the data without executing the triggers?
thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚在 SQL 2000 数据库上测试了这个场景,它对我来说效果很好。您确定要按照 的说明保存更改吗这里?
I just tested this scenario on a SQL 2000 database and it worked fine for me. Are you sure you're saving the changes as described here?
首先,您不应该在使用企业管理器时更改数据。这样你可能会造成可怕的问题。如果表很大,它可能会花费绝对愚蠢的长度(例如创建新表并填充它而不是更新记录)来获取数据。除非通过脚本,否则切勿进行任何数据更改。
In the first place, you should not ever make changes to the data in using Enterprise manager. You can create horrible problems this way. If the table is large it may go to absolutely silly lengths (such as creating new table and populating it rather than updating the record) to get the data in. Never make any data change except through a script.