p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > SQL Server > SQL Server DTS
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 24th, 2006, 03:43 PM
Registered User
 
Join Date: Jul 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DTS Package, XML task. Read XML file and store it

I am creating a package using SQL Server 2005 Integration Services.
I have .XML file where is stored Path of MS Access file.
I want "XML task" to read this .XML file and store Path value in the
package level User::AccessPath variable. My construction does not work.
If anybody knows why, please, help!

XML Task Editor: properties that I have set up :


Input
   OperationType: XPATH
   SourceType: File connection
   Source: ConnectionProfile.xml
Output:
   SaveOperationResult: True
   OperationResult:
       Destination: User::AccessSource
       DestinationType: Variable
       OverwriteDestination: True
Second Operand:
   SecondOperandType: Direct input
   SecondOperand: /dsPDM/tblSourceConnection/Path
XPATH Options:
   PutResultInOneNode: False
   XPATHOperation: Values


******************* ConnectionProfile.xml **************************
<dsPDM xmlns="http://tempuri.org/dsPDM.xsd">
  <tblSourceConnection>
    <ConnectionName>Access</ConnectionName>
    <Path>C:\Access\Local\db1.mdb</Path>
  </tblSourceConnection>
</dsPDM>
***********************************************




Thank you,
Victoria.
__________________
Thank you,
Victoria.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Read xml file Nehru C# 0 October 8th, 2007 05:40 AM
Running DTS package through Execute SQL / pkg Task sthekk SQL Server DTS 1 April 23rd, 2007 12:18 PM
How to read parent Package in Script Task rarediamond25 SQL Server 2005 3 April 12th, 2007 11:01 AM
DTS Package Export Data to XML Problem kwilliams SQL Server DTS 1 January 3rd, 2006 02:22 PM
Java Applet that can read an XML file sankar J2EE 1 December 25th, 2003 05:40 AM



All times are GMT -4. The time now is 07:59 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc