1. 用insert触发器   create trigger tr
   on 表
   for insert
   as
       exec master..xp_cmdshell '应用程序路径'
   go2. 在应用程序中实现.插入记录的同时,调用执行你要运行的程序