Escolar Documentos
Profissional Documentos
Cultura Documentos
Script Date:
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[sp_AddrssbySid]
(
@S_id int,
@C_name varchar(15)
)
as
begin
select *FROM AdventureWorks.Person.Address
where StateProvinceID=@S_id
and city=@C_name
end
GO
Normal execution:
EXEC [dbo].[sp_AddrssbySid] 14 , 'york'
city(C_name)
i)
ii)
iii)
iv)
SOURCE editor
Query Parameter
Parameters
variables
@S_id
User::S_id
@C_name
User::C_name
CLICK ON DESTINATION
go to control flow
Take Execute sql task and than link to data flow task
Than configure above .(this is for truncate table every time when new data appends if we
want over write data we dont consider this task .
click on ok again ok
Just change the variablesand save the package dont change anything apart from that .
Checking in sql weather existing data replace with current data or not .
Thats it