Viewing 10 posts - 1 through 10 (of 10 total)
Thanks for the reply. I thought that when a trigger is fired, a transaction occurs, so there is something to commit , no?
I also noticed that you can't capture the...
October 10, 2013 at 8:37 am
After further research it seems that a solution could be to COMMIT the trigger in its very beginning , i.e
ALTER TRIGGER [dbo].[tr_ComponentOnLines] ON [dbo].[tblCFGLine] AFTER INSERT, UPDATE, DELETE
AS
BEGIN
COMMIT
BEGIN TRY
DECLARE...
October 10, 2013 at 7:54 am
After further research it seems that a solution could be to COMMIT the trigger in its very beginning , i.e
ALTER TRIGGER [dbo].[tr_ComponentOnLines] ON [dbo].[tblCFGLine] AFTER INSERT, UPDATE, DELETE
AS
BEGIN
COMMIT
BEGIN TRY
DECLARE...
October 10, 2013 at 5:52 am
Thanks Gail,
That's a good spot. Will correct accordingly.
V
September 20, 2013 at 5:11 pm
Hello Erlang,
Many thanks for your reply. Couple of days ago, I found a solution, check the following please :
with cte_test (DatetimeStamp,Packcount,WorkOrderID,RowID)
AS
(
SELECT *,ROW_NUMBER() OVER (Order by...
September 20, 2013 at 4:35 pm
Is the rt.productid referring to column that is part of the main query? I guess what I am asking is if your sub query is a correlated one. How...
September 18, 2013 at 9:28 am
Either you are missing the point or I fail to explain
I will shortly post the script to avoid confusions.
September 18, 2013 at 5:52 am
Thanks for the reply,
So according to my example :
Counts Time
10 05:54
309 06:02
...
..
25 13:58
91 14:02
The point is that you don't want just records before 06:02 am, you want to include it...
September 18, 2013 at 5:27 am
many thanks for the reply,
I have been trying for hours to understand the problem. I will try and let you know.
Thanks
September 9, 2013 at 7:44 am
Viewing 10 posts - 1 through 10 (of 10 total)