Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)

  • RE: TRYCATCH/SAVEPOINTS INSIDE TRIGGERS

    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...

  • RE: TRYCATCH/SAVEPOINTS INSIDE TRIGGERS

    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...

  • RE: SAVEPOINTS IN TRIGGERS

    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...

  • RE: Performance on 10 million row table

    Thanks Gail,

    That's a good spot. Will correct accordingly.

    V

  • RE: Performance on 10 million row table

    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...

  • RE: urgent help with stored procedure performance tuning

    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...

  • RE: Performance on 10 million row table

    Either you are missing the point or I fail to explain

    I will shortly post the script to avoid confusions.

  • RE: Performance on 10 million row table

    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...

  • RE: Time Range

    It worked. Thanks guys!

  • RE: Time Range

    many thanks for the reply,

    I have been trying for hours to understand the problem. I will try and let you know.

    Thanks

Viewing 10 posts - 1 through 10 (of 10 total)