Hi all,
I have a very simple stored proc:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure MyProc
as
Begin Tran
Insert into myTbl(....) Values(....)
Commit Tran
This is called repeatedly from a multi-user application to insert over a thousand rows at one go. Sometimes (once in a few months) it silently fails. I checked the data when it failed, and the data seems to have had nothing to cause the failing.
Could the explicit transaction be contributing to the failures when the multiple users are calling it simultaneously?
Is there anything I can investigate to find the cause?
TIA,
Sheila
I have a very simple stored proc:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure MyProc
as
Begin Tran
Insert into myTbl(....) Values(....)
Commit Tran
This is called repeatedly from a multi-user application to insert over a thousand rows at one go. Sometimes (once in a few months) it silently fails. I checked the data when it failed, and the data seems to have had nothing to cause the failing.
Could the explicit transaction be contributing to the failures when the multiple users are calling it simultaneously?
Is there anything I can investigate to find the cause?
TIA,
Sheila