Insert trigger not firing

Insert trigger not firing

Post by Brian Bake » Fri, 01 Jan 1999 04:00:00



I've got an insert trigger on a table that doesn't seem to be firing.  The
trigger is an autonumber emulator, created by the SQL Server Browser (part
of the MS Access Upsizing Tools).

I tried using SQL Trace to see if it was being fired, but it doesn't show
any mention of it there.  I also tried dropping and recreating the trigger.
Any suggestions on how to troubleshoot this problem?

Brian Baker

 
 
 

Insert trigger not firing

Post by Tony Rogerso » Fri, 01 Jan 1999 04:00:00


Brian,

The trigger won't appear in SQL Trace, Trace only captures the SQL batch
that was sent to SQL Server.

To determine if the trigger is being fired, modify it and put some debug
code in there, such as a select statement or print then try an insert.

--
Hope the above helps.

Tony Rogerson MCP, MS SQL Server MVP
Torver Computer Consultants Ltd
London, England.


Quote:>I've got an insert trigger on a table that doesn't seem to be firing.  The
>trigger is an autonumber emulator, created by the SQL Server Browser (part
>of the MS Access Upsizing Tools).

>I tried using SQL Trace to see if it was being fired, but it doesn't show
>any mention of it there.  I also tried dropping and recreating the trigger.
>Any suggestions on how to troubleshoot this problem?

>Brian Baker


 
 
 

Insert trigger not firing

Post by Mohamed A. Zaian » Mon, 04 Jan 1999 04:00:00


simply set the autonumber field default to zero

regards

Mohamed Zaiani
MCSE, MCSD, MCT, MCP+I, CLP, SCJP