Ask a Question related to Coldfusion Database Access, Design and Development.
-
ego-adam #1
SQL Server Trigger question
Hi All,
I have a cf app accessing data from a database that is controlled primarily by
our MRP software. My problem isn't really ColdFusion related, but MS SQL. Sorry
for posting it here, but I am a CF programmer, not an SQL guru.
I wrote a trigger to capture records (and copy them to an external table) as
they are inserted from within the MRP. (MS SQL Server 2000). The trigger is
succefull when I manually insert records, but not when the MRP inserts them. I
can only assume, that the MRP inserts the records from within a transaction,
and because my trigger fires during that transaction, the transaction fails and
get rolled back.
How do I write a trigger that wont interupt the transaction?
Any help would be great! Thanks!
ego-adam Guest
-
trigger question
Hi I have the following tables TranDetails (3rd Party) with 4 fields making up primary key Supplier char 7 GRN char 7 Journal decimal... -
An trigger question
Hi,all: I want to create some trigger on an important database,my database is IDS2000. My question is: If exist a way to limit me only can create... -
question about trigger
Hello, I would like to use trigger to record change in every field (F1, F2, F3..) from table TAB1. CREATE TRIGGER TR1 AFTER UPDATE OF F1, F2,... -
Trigger question ...
We have about 50 customers in hosted environment, each running databases withi identical schema but different names. Part of the application traps... -
Simple trigger question
I'm real rusty with triggers..and I need one fairly quickly, so I would really appreaciate a bit of help. All I need to do: Upon insert or... -
paross1 #2
Re: SQL Server Trigger question
I'm not a SQL Server guru, but wouldn't your trigger be considered to be a
nested transaction if it was written that way? I've never used triggers in SQL
Server myself, but I have used them with Oracle, so it wouldn't hurt to take a
look at how it was written.
There is a lot of information in SQL Server BOL regarding nesting
transactions, rollbacks in stored procedures and triggers, etc., which may shed
some light on how to write your trigger to fire within a transaction and not
get rolled back.
Phil
paross1 Guest
-
SQLMenace #3
Re: SQL Server Trigger question
A trigger firing will no cause a transaction to rollback
use profiler to capture the SQL from your MRP, then rerun the exact statement in QA and see what happens
SQLMenace Guest
-
sdupre #4
Re: SQL Server Trigger question
There was a bug in SQL Server INSERT triggers found in 3.4 and fixed in 3.5.
See if the 3.5 driver description (in the coldfusion hotfix site) is the problem you're having.
sdupre Guest



Reply With Quote

