开发者

verify creation of database objects such as triggers, procedures , permissions

开发者 https://www.devze.com 2023-02-14 02:20 出处:网络
I am creating triggers & procedures on a table from a winform application which uses sql server 2005 express.

I am creating triggers & procedures on a table from a winform application which uses sql server 2005 express.

I want that when the user clicks the create trigger/procedure button, then it c开发者_运维百科reates both the objects & displays on a new Form that triggers & procedures are created with the names and tables on which they are created.

I mean that how do i verify that the objects are created. i want to verify and show it to the user that the objects are created on the so and so table.


After your CREATE XXX ..., you can run SELECT OBJECT_ID('XXX')

Of course, if you have no error the object exists anyway

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号