[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

capturing resultset of stored procedure and sending results through email in ssis

Posted on 2008-06-12
3
Medium Priority
?
1,416 Views
Last Modified: 2012-06-22
Hi Experts,
i need help in SSIS. I want to capturing results of a stored procedure and send the result set using send mail task. i know that i should store the resultset values in a global variable and then call the variable in send mail task.
i am not able to capture the results into a variable. please help
give me some idea  
0
Comment
Question by:kgadde
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
sbagireddi earned 500 total points
ID: 21773767
You can put the result in a table variable or temp table, call that using the send mail task.

Maybe this will help:

http://www.sqlteam.com/article/stored-procedures-returning-data
0
 
LVL 8

Assisted Solution

by:i2mental
i2mental earned 500 total points
ID: 21773859
Assuming your SP returns a table. (if not, just change your variable type accordingly)

create an "object" variable.
Add a SQL Script task
Edit the SQL Script task to have the SP in the sql query field
Change the "result" field to "Full result set"
In the "Results" section on the left, add a result line.
Make that result name "0" and assign it to the object variable you created.

The results will be pumped to that variable.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question