Can someone post sample code or tell me how to set up a listener to notify me (trigger an event) if a new row is inserted into a SQL Server database?
I don\'t want
Trigger sounds best option:
create TRIGGER [tI_Notifier] ON [dbo].[your_table_name] AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
declare @id1 int --or same type as your key
--declare other variables you want to read from the inserted row
--read columns values from inserted row
select @id1 = , @id2= from inserted
--do something with row's new values
SET NOCOUNT OFF;
END