Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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?