Scenario: Retrieving personal information using a stored procedure
This scenario describes a Job that retrieves a personal information record from a
specified table using a stored procedure according to the id value defined in the input flow.

In this scenario, the table to retrieve data from contains the personal information.
To reproduce this scenario, you can write the data into the table from a CSV file like
the following. For how to write data into a MS SQL table, see Scenario: Inserting data into a database table and extracting useful information from it.
1 2 3 4 5 6 |
id;name;sex;age 1;Ford;Male;25 2;Rose;Female;30 3;Sabrina;Female;28 4;Teddy;Male;32 5;Kate;Male;35 |
In this scenario, the stored procedure used to retrieve the personal information is as
follows:
1 2 3 4 5 6 7 8 |
CREATE PROCEDURE [dbo].[QueryPerson] @id int, @name varchar(50) AS BEGIN SET NOCOUNT ON SELECT * FROM dbo.person where id=@id END |
Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Login
0 Comments