Solved

Sending Excel file through SSIS

Posted on 2008-06-25
2
512 Views
Last Modified: 2008-07-03
Hi there family,

How do I create a SSIS package in SQL Server 2005 to 1) create an Excel file  from a stored procedure and 2) send this Excel file to a specific file directory (i.e., C:\My Documents\Misc\) all in one fell swoop?
0
Comment
Question by:tuckandroll
2 Comments
 
LVL 5

Accepted Solution

by:
catherinelouise earned 50 total points
Comment Utility
Hello, try:
On the Control Flow tab add a Data Flow task.
Edit this, you will be taken through to the Data Flow tab.

Add a Data Reader Source task, in the Connection Managers tab you will need to create a .NetProvider\SqlClientDataProvider connection and configure a connection to your SQL Server and db where the stored proc resides.  In the Component Properties tab, type in the SQL statement that will execute your stored procedure in the SQL Command field.  You may need to change the timeout value depending on how long your sproc takes to complete.

Finally add an Excel Destination task, here you can configure the destination and name of the excel output file.

0
 

Author Comment

by:tuckandroll
Comment Utility
thanks for the tip catherinelouise. I'll give it a try and let you know!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now