Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Create DDL Stored Procedure

$
0
0

I want to create a stored procedure to drop and recreate tables prior to loading them from other tables. I.e. the Execute SQL Task would be the first step of an SSIS package before some data flow tasks.

Essentlially I'm refreshing a datamart. I have a script that works fine to drop and recreate the tables, but want to keep it external from the ETL package in a stored proc. I tried pasting the script into a stored proc shell and it wouldn't compile.  It didn't like the "if table exists drop it" code for some reason inside the proc.

Secondly, assuming the Stored Proc gets created, are these properties correct for Execute SQL Task in SSIS:

------------------

Connection type: Ado.net

SQL Source Type: Direct Input

SQL Statement: exec [Schema].[sp_xyz]

IsQueryStoredProcedure: True

------------------

Or do I need to specify dummy parameters as some threads indicate?

Thirdly, one thread indicated that Control Flow steps may not execute in sequence (?) and that I might need to specify "Delay Validation" somewhere.  If so, where do I do that?

Thanks much,

Jnana


Jnana Sivananda


Viewing all articles
Browse latest Browse all 24688

Trending Articles