Viewing 5 posts - 1,381 through 1,385 (of 1,385 total)
"after several updates and inserts..."
Maybe it's worth asking... does your procedure specify 'set xact_abort on'? When a proc has multiple DML statement in a transaction and without xact_abort setting can...
August 7, 2019 at 12:34 pm
Hi I posted this answer before but it appears to be marked as SPAM. Not sure why. This site has an annoying text editor.
What this code is doing.
July 25, 2019 at 12:51 pm
This was removed by the editor as SPAM
July 24, 2019 at 8:11 pm
Yes exactly. Something like:
drop proc if exists wm.api_comment_post;
go
create proc wm.api_comment_post
@securitystamp uniqueidentifier,
@cw_id bigint,
@comment nvarchar(1024),
@test_id bigint output,
@response nvarchar(max) output
as
set nocount on;
set xact_abort on;
begin transaction
begin try
declare
@awc_id bigint;
insert comments(u_id, w_id, cw_id, comment, created_dt, edited_dt)
select
wm.func_user_id(@securitystamp),
cw.w_id,
cw.cw_id,
@comment,
sysutcdatetime(),
sysutcdatetime()
from
wm.class_workouts...
July 24, 2019 at 1:31 pm
Reasons to use output parameters in stored procedures:
July 23, 2019 at 1:16 pm
Viewing 5 posts - 1,381 through 1,385 (of 1,385 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy