dbTalk Databases Forums  

EXEC Stored Procedure does not work in SSIS task

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss EXEC Stored Procedure does not work in SSIS task in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
praveen
 
Posts: n/a

Default EXEC Stored Procedure does not work in SSIS task - 08-11-2008 , 11:07 PM






Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM






Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #3  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM



Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #4  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM



Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #5  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM



Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #6  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM



Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #7  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM



Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #8  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM



Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #9  
Old   
Todd C
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 07:59 AM



Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Quote:
Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
  #10  
Old   
praveen
 
Posts: n/a

Default RE: EXEC Stored Procedure does not work in SSIS task - 08-12-2008 , 03:49 PM



Thanks Todd, A stored procedure UPDW_UpdateTraffic_DataMart runs in the SSIS
dataflow task, the parameters required for this procedure are provided by

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan


sp_GetTrafficData is executed in UPDW_UpdateTraffic_DataMart stored
procedure and this is causing problems, if I comment Calculate the start and
the end date
code the SSIS Task Flow works fine.

Thanks
Sword



--
praveen.kumar (AT) aut (DOT) ac.nz


"Todd C" wrote:

Quote:
Hello;

Do you have two Variables in your Package that hold the values for the two
input parameters?

Set up your Source adapter and put in your command as :

sp_GetTrafficDate ? ?

Then hit the Parameters button. Map the two input parameters to the two
variables as appropriate. (Note: the Parse button WILL return an error but it
should run OK)

--
Todd C

"praveen" wrote:

Hi,
I have a SSIS package
In my source "data flow" task I have a stored procedure (sp_GetTrafficData)
which gets the data and populates the table in the destination task.

The stored procedure sp_GetTrafficData executes another stored procedure the
code is as follows:,

------Calculate the start and the end date
EXEC sp_GetTrafficData @affiliate_ID, @weekSpan

I have tried this also:
EXEC sp_GetTrafficData( @affiliate_ID, @weekSpan)

When I run the SSIS package it gives this error: VS_NEEDNEWMETADATA

I am banging my head aganist the wall, there is no joy so far

Please help

Kind Regards
Swordfish8 (AT) hotmail (DOT) com




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.