Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have two database one is HRMS0 , table name 'offer' Active and one is PER1 table name'History' 'applicant'


Task : Create a job which runs every 15 min where want to transfer the Changes made in tabe offer ('Name',designation , department) against employee code it should reflect in History table against employee code ('Name',designation , department)


example
XML
<pre lang="sql">
USE <pre lang="sql">HRMS0
Create Table Employee_details_test (employee_id varchar(100),Name varchar(100),Designation_code varchar(200))

insert into Employee_details_test values (&amp;#39;B0001&amp;#39;,&amp;#39;Ramesh.G&amp;#39;,&amp;#39;J0001&amp;#39;),
(&amp;#39;B0002&amp;#39;,&amp;#39;Suresh&amp;#39;,&amp;#39;J0001&amp;#39;),(&amp;#39;B0003&amp;#39;,&amp;#39;Ram.G&amp;#39;,&amp;#39;J0002&amp;#39;),(&amp;#39;B0004&amp;#39;,&amp;#39;Biju&amp;#39;,&amp;#39;J0005&amp;#39;)&lt;/pre&gt;</pre>

use PER1
Create Table Employee_details_test1 (employee_id varchar(100),Name varchar(100),Designation_code varchar(200))

insert into Employee_details_test1 values ('B0001','Ramesh.G','J0002'),
('B0002','Sures.m','J0001'),('B0003','Ram.G','J0002'),('B000','Biju','J0005')


Now i need a shedular to be RUN in SSIS package to update wat eever Changes happen  in Hrms 40 table reflect in perdb table

Example if i do Changes  name for  B0001 as Ramesh.M in HRMS40 DB , the shedular should automatically do Changes PER1 table  Employee_details_test1 against B0001 as Ramesh.M
Posted
Updated 11-Nov-14 23:52pm
v2
Comments
Maciej Los 11-Nov-14 4:43am    
What's the issue? WHat have you tried? Where are you stuck?
Shweta N Mishra 11-Nov-14 4:47am    
you can use trigger.
Kannan 261190 11-Nov-14 23:02pm    
<pre lang="sql">

USE <pre lang="sql">HRMS0

Create Table Employee_details_test (employee_id varchar(100),Name varchar(100),Designation_code varchar(200))



insert into Employee_details_test values (&#39;B0001&#39;,&#39;Ramesh.G&#39;,&#39;J0001&#39;),

(&#39;B0002&#39;,&#39;Suresh&#39;,&#39;J0001&#39;),(&#39;B0003&#39;,&#39;Ram.G&#39;,&#39;J0002&#39;),(&#39;B0004&#39;,&#39;Biju&#39;,&#39;J0005&#39;)</pre></pre>



use PER1

Create Table Employee_details_test1 (employee_id varchar(100),Name varchar(100),Designation_code varchar(200))



insert into Employee_details_test1 values ('B0001','Ramesh.G','J0002'),

('B0002','Sures.m','J0001'),('B0003','Ram.G','J0002'),('B000','Biju','J0005')





Now i need a shedular to be RUN in SSIS package to update wat eever Changes happen in Hrms 40 table reflect in perdb table



Example if i do Changes name for B0001 as Ramesh.M in HRMS40 DB , the shedular should automatically do Changes PER1 table Employee_details_test1 against B0001 as Ramesh.M

1 solution

XML
<pre lang="sql">

USE <pre lang="sql">HRMS0

Create Table Employee_details_test (employee_id varchar(100),Name varchar(100),Designation_code varchar(200))



insert into Employee_details_test values (&amp;#39;B0001&amp;#39;,&amp;#39;Ramesh.G&amp;#39;,&amp;#39;J0001&amp;#39;),

(&amp;#39;B0002&amp;#39;,&amp;#39;Suresh&amp;#39;,&amp;#39;J0001&amp;#39;),(&amp;#39;B0003&amp;#39;,&amp;#39;Ram.G&amp;#39;,&amp;#39;J0002&amp;#39;),(&amp;#39;B0004&amp;#39;,&amp;#39;Biju&amp;#39;,&amp;#39;J0005&amp;#39;)&lt;/pre&gt;</pre>



use PER1

Create Table Employee_details_test1 (employee_id varchar(100),Name varchar(100),Designation_code varchar(200))



insert into Employee_details_test1 values ('B0001','Ramesh.G','J0002'),

('B0002','Sures.m','J0001'),('B0003','Ram.G','J0002'),('B000','Biju','J0005')





Now i need a shedular to be RUN in SSIS package to update wat eever Changes happen  in Hrms 40 table reflect in perdb table



Example if i do Changes  name for  B0001 as Ramesh.M in HRMS40 DB , the shedular should automatically do Changes PER1 table  Employee_details_test1 against B0001 as Ramesh.M
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900