Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Cherichoc-
Creator
Creator

Stored procedure not inserting rows tMssqlSp

I created a stored procedure that selects data from one table and inserts loop rows to another table

CREATE PROCEDURE [dbo].[forMark]
@marks int output
,@studentid INT output
,@n int =0

as

SELECT @studentid = studentid, @marks = [ marks]
     FROM dbo.tempPersons
     WHERE statuscode=0

while @n <@marks
begin
insert into dbo.tempMarks (studentid) values(@studentid)
set @n =@n+1
end

 

My talend 

0683p000009M9cf.png

 

Labels (4)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Is Autocommit option activated on tDBConnecction?

View solution in original post

2 Replies
Cherichoc-
Creator
Creator
Author

@nthampi  @irahman  @TRF @vapukov @fdenis please help out with a solution

 

TRF
Champion II
Champion II

Is Autocommit option activated on tDBConnecction?