Can SQL CLR triggers do this? Or is there a better way?

后端 未结 6 1750
清歌不尽
清歌不尽 2020-12-19 07:39

I want to write a service (probably in c#) that monitors a database table. When a record is inserted into the table I want the service to grab the newly inserted data, and

6条回答
  •  旧时难觅i
    2020-12-19 08:20

    Why not implement the insert in a stored procedure, and do the business logic in the procedure after the insert? What is so complicated about it that it can't be written in T-SQL?

提交回复
热议问题