Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7534795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:07:16+00:00 2026-05-30T06:07:16+00:00

In SSIS (sql server 2008) I have a Sql task which is calling my

  • 0

In SSIS (sql server 2008) I have a Sql task which is calling my stored procedure.
The stored procedure gets 1 input parameter and return 2 output parameters.
This is the prototype of my SP:

declare spGetPersonDetails(personid int, @orders xml output, @names xml output )
as…..

The problem is that in my sql task in iis, i declared these 3 parameters. one input and 2 outputs, and when it’s running only one of the output parameters gets a value from the sp.

Any idea?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:07:18+00:00Added an answer on May 30, 2026 at 6:07 am

    I tried recreating this simply with a sample stored procedure.

    Stored Procedure

    CREATE PROCEDURE [dbo].[TestProcedure]
        -- Add the parameters for the stored procedure here
        @Input INT,
        @Output1 INT OUTPUT,
        @Output2 INT OUTPUT
    AS
    BEGIN
        SET @Output1 = @Input + 1
        SET @Output2 = @Input + 2
    END
    

    Then on the SQL task (which I used an OLE DB source) I had the sql statement set to

    EXEC dbo.TestProcedure @Input = ?, @Output1 = ? OUTPUT, @Output2 = ? OUTPUT
    

    Lastly all that was needed is valid parameter mapping ensuring the “Direction” column was set accurately.

    I got most of this information from two sites:

    http://blogs.msdn.com/b/mattm/archive/2006/11/08/stored-procedures-with-output-parameters.aspx

    http://www.julian-kuiters.id.au/article.php/ssis-execute-sql-task-output-parameters

    I hope this helps you, if you have more information with the specific values you have set on this SQL task I will be happy to update my answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Execute SQL task (SQL 2008) where I'm using two SSIS variables
I have a job on SQL Server 2005 running a ssis package. The package
I have an SSIS package that I've saved under Maintenance Plans on SQL Server
We have recently migrated some 30 DTS packages in SQL Server 2000 to SSIS
We have a xml column in SQL Server 2008. We need to do reporting
I'm trying to copy data from MySQL to SQL Server 2008. My SSIS is
I have a SQL Server 2008 DB. I want to extract SOME tables (and
I have a SSIS package that runs on a SQL Server 2005 instance that
I'm creating a data mart in SQL Server 2008 using SSIS for load, and
I have a FoxPro data source, and the destination is SQL Server 2008. On

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.