我知道在SQL中有存储过程之类的东西,但有没有办法让自动化他们的方式是,当一行被添加到表中时,sql azure会自动接收一些数据并将其添加到单独的桌子?有没有办法创建一个过程,每当一个新行添加到表时触发?
例如, 表“DocumentComments” 临危新行,像这样
CommentID: 23 UserID: 57 Comment:"This is a comment." InResponseToUser: 73
执行存储过程
Catch CommentID 23 and insert new notification in table "Notifications"
NotificationID : 2520 UserID: 73 Read: False
对Azure不太了解,但是在标准SQL数据库中,您正在讨论触发器 - 为响应触发器附加到的表上的活动而自动执行的操作。 – 2013-05-08 21:24:31
感谢您的信息。现在我确切知道要查找什么。 – Adrian 2013-05-08 21:29:37