Solved

ssis execute sql task how to ?

Posted on 2011-03-02
3
467 Views
Last Modified: 2012-05-11
In my dtsx packages. I have bulk insert task and execute sql task how do I link between this two ? and what option I have in execute sql task to save the query results to txt file and how to configure it ?
0
Comment
Question by:motioneye
3 Comments
 
LVL 7

Assisted Solution

by:lozzamoore
lozzamoore earned 50 total points
ID: 35016181
You need to explain in a bit more detail what you mean by "link the two".

Generally tasks are "linked" to a "Connection". Once a connection is created, then the corresponding Connection property can be set in each of the Tasks.

As for results to txt file, if you are running a SQL query that produces results, then you would typically run this within a Data Flow task, and not a SQL Task.

Hope this helps,

L
0
 
LVL 17

Accepted Solution

by:
Barry Cunney earned 450 total points
ID: 35016189
Hi MotionEye,
To get query results to text file, the best approach is to drag an OLEDB Source object  and a Flat File  Destination object into the Control Flow section  in Designer.
Edit the OLEDB source to execute an SQL Command and enter the SQL statement that gets the required result set.
Edit the flat file destination and enter the path of the required text file
I have attached a print screen as an aid
SSIS.jpg
0
 

Author Closing Comment

by:motioneye
ID: 35016479
Thanks for the quick help :)
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

910 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

19 Experts available now in Live!

Get 1:1 Help Now