Вот последние секунды жизни 1С по профайлеру:
set implicit_transactions on
exec _1sp__1SJOURN_TLockX
declare @p1 int
set @p1=1073741830
declare @p2 int
set @p2=180150019
declare @p5 int
set @p5=2
declare @p6 int
set @p6=1
declare @p7 int
set @p7=-1
exec sp_cursorprepexec @p1 output,@p2 output,N'@P1 varchar(18),@P2 varchar(11)',N'Select * from _1SJOURN WITH (NOLOCK) where DNPREFIX=@P1 and DOCNO=@P2 order by DNPREFIX, DOCNO, ROW_ID',@p5 output,@p6 output,@p7 output,' 21982011 ','ПШ-0005242 '
select @p1, @p2, @p5, @p6, @p7
exec sp_cursorfetch 180150019,1,0,1
declare @p2 char(9)
set @p2=' UOLG '
exec _1sp__1SUIDCTL_GetMaxID 0,@p2 output
select @p2 1CV7
declare @p1 varchar(9)
set @p1=' UOLG '
exec _1sp__1SJOURN_MaxID @p1 output
select @p1 1CV7
exec sp_executesql N'Insert into _1SJOURN values( @P1 int,@P2 varchar(9),@P3 int,@P4 smallint,@P5 varchar(23),@P6 varchar(18),@P7 varchar(11),@P8 tinyint,@P9 bit,@P10 int,@P11 int,@P12 bit,@P13 bit,@P14 bit,@P15 bit,@P16 bit,@P17 bit,@P18 bit,@P19 bit,@P20 bit,@P21 bit,@P22 bit,@P23 varchar(9),@P24 varchar(9),@P25 varchar(9),@P26 numeric(1,0),@P27 varchar(1),@P28 varchar(9),@P29 varchar(9),@P30 tinyint,@P31 tinyint,@P32 varchar(13),@P33 varchar(23)',2452,' UOLH ',2198,0,'201112017ZGXQ8 UOLH ',' 21982011 ','ПШ-0005242',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,' 0 ',' 4R ',' 13ZG ',0,' ',' 0 ',' 0 ',0,0,' ',' '
IF @@TRANCOUNT > 0 ROLLBACK TRAN
IF @@TRANCOUNT > 0 ROLLBACK TRAN
set implicit_transactions off
set implicit_transactions off
exec sp_executesql N'Delete from _1SDNLOCK where DNPREFIX=@P1 and DOCNO=@P2',N'@P1 varchar(28),@P2 varchar(24)',' 21982011 ','ПШ-0005242 '
exec sp_cursorclose 180150015
exec sp_cursorunprepare 1073741829
declare @p2 int
set @p2=180150021
declare @p3 int
set @p3=2
declare @p4 int
set @p4=2
declare @p5 int
set @p5=-1
exec sp_cursorexecute 1073741825,@p2 output,@p3 output,@p4 output,@p5 output
select @p2, @p3, @p4, @p5
exec sp_cursorfetch 180150021,2,0,1
exec sp_cursor 180150021,1,1,N'',@USRSCNT=0,@NETCHGCN=1
exec sp_cursorclose 180150021
exec sp_cursorunprepare 1073741825