Wrox Programmer Forums
|
BOOK: Professional Microsoft SQL Server 2012 Integration Services
This is the forum to discuss the Wrox book Professional Microsoft SQL Server 2012 Integration Services by Brian Knight, Erik Veerman, Jessica M. Moss, Mike Davis, Chris Rock; ISBN: 978-1-1181-0112-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Microsoft SQL Server 2012 Integration Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2015, 11:09 PM
Registered User
 
Join Date: Jan 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Execute SQL Task

I am experimenting with the Execute SQL Task. I have written an sql statement to select a single results set. The task runs fine. My question is: how do I see the record that was selected. In other words how do I capture this results set for further processing, such as inserting it into another table?

Thanks.
Samuel
 
Old April 23rd, 2015, 02:16 PM
Authorized User
 
Join Date: Apr 2015
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default result set as XML in user variable

I wrote a SQL statement that included "For XML Path('')" so that it would produce XML. In the General properties section I set the ResultSet property to XML. in the Result Set property section, I set the created a user variable to store that XML. I added a Script task to write the variable value to a file.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Execute SQL task populating an XML result set griffster BOOK: Knight's 24-Hour Trainer: Microsoft SQL Server 2008 Integration Services 0 April 13th, 2012 10:21 AM
Deployment - Execute Package task carumuga SQL Server DTS 0 October 3rd, 2008 07:43 AM
Using multiple SPs in one "Execute SQL Task" yukito SQL Server DTS 2 January 3rd, 2008 12:53 AM
Running DTS package through Execute SQL / pkg Task sthekk SQL Server DTS 1 April 23rd, 2007 11:18 AM
Execute Task from ActiveX Script Task PorcupineRabbit SQL Server DTS 1 January 10th, 2006 12:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.