Solved

SQL 2005 SSIS Script Task - Run a Query

Posted on 2006-11-09
2
4,414 Views
Last Modified: 2013-12-25
Easy points:

How about an example of how to run a SQL query from within an SQL 2005 SSIS Script Task using an existing connection?

Thanks
0
Comment
Question by:kwebster7327
2 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 17923649
Check this link out:
The ExecuteSQL Task
http://www.sqlis.com/default.aspx?58
0
 
LVL 1

Author Comment

by:kwebster7327
ID: 17923886
That's useful (I'll definitely bookmark it), but I need to run a couple queries from <B>within</B> a VBScript task. Seems like a lot of effort to have to load up variables, jump out to a SQL task (or two), then jump back into another VBScript task. Actually, my scenario would require a flow likescript->SQL->script->SQL->script.

You'll get the points if nobody else comes up with a more spot-on answer- just for that link.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 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