Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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
Creator III
Creator III

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
Creator III
Creator III

Is Autocommit option activated on tDBConnecction?