Hi Everybody,
i'm transfering one big SQLscript into DTS package. Here is my problem. Whem i'm puting 'Create procedure' from that script into stored procedures, it always tells me that I didn't declare values(@WorkForce INT,@Recr_ID INT)...here is code from that script:
-- Create Import Procedures
if exists (select * from sysobjects where id = object_id(N'Truncate_import_tables') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [Truncate_import_tables]
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE Truncate_import_tables
AS
truncate table Import_Person
truncate table Import_PersonJob
truncate table Import_PersonEducation
truncate table Import_PersonSkill
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
if exists (select * from sysobjects where id = object_id(N'Import_temp_data') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [Import_temp_data]
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE Import_temp_data
@WorkForce INT,
@Recr_ID INT
AS
begin transaction Import
declare @id_person int
declare @id_othercat int
......
.....
.....
etc
AND I WOULD LIKE TO CALL THOSE "PROCEDURES" FROM STORED PROCEDURES LIKE:
-- Create Import Procedures
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
exec Truncate_import_tables
SET QUOTED_IDENTIFIER OFF
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
exec Import_temp_data
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
THANX VERY MUCH
i'm transfering one big SQLscript into DTS package. Here is my problem. Whem i'm puting 'Create procedure' from that script into stored procedures, it always tells me that I didn't declare values(@WorkForce INT,@Recr_ID INT)...here is code from that script:
-- Create Import Procedures
if exists (select * from sysobjects where id = object_id(N'Truncate_import_tables') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [Truncate_import_tables]
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE Truncate_import_tables
AS
truncate table Import_Person
truncate table Import_PersonJob
truncate table Import_PersonEducation
truncate table Import_PersonSkill
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
if exists (select * from sysobjects where id = object_id(N'Import_temp_data') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [Import_temp_data]
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE Import_temp_data
@WorkForce INT,
@Recr_ID INT
AS
begin transaction Import
declare @id_person int
declare @id_othercat int
......
.....
.....
etc
AND I WOULD LIKE TO CALL THOSE "PROCEDURES" FROM STORED PROCEDURES LIKE:
-- Create Import Procedures
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
exec Truncate_import_tables
SET QUOTED_IDENTIFIER OFF
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
exec Import_temp_data
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
THANX VERY MUCH