Sql server 2005 knowing new record is inserted

前端 未结 4 1934
遥遥无期
遥遥无期 2020-12-22 08:34

Is there any way to find out whether a new record is inserted other than writing trigger in sql server 2005. (it can be tsql or by java...) Since the vendor is not allowing

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-22 08:51

    I think you need to define "Is there any way to find out whether a new record is inserted other than writing trigger". Triggers are basically event handlers in SQL. So are you wanting to have something like a trigger that fires whenever a new row is inserted into a table? If so, the answer is yes, it's called SQL Server Notification Services.

    Here's a beginners article, but I'm sure you can just google "sql server notification" and get tons of results.

    Here's another good article: Using SqlDependency To Monitor SQL Database Changes

提交回复
热议问题