dbTalk Databases Forums  

XML in SQL 2000 DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss XML in SQL 2000 DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Silmar
 
Posts: n/a

Default XML in SQL 2000 DTS - 12-19-2006 , 02:43 AM






Hi!

I would like to open XML file in DTS and then parse it and save it content
in a few rowsets.

So I put a Dynamic Properties Task in my package, within it I read the
content of XML file into the global variable. Next I created an Execute SQL
Task and wanted to use it to prepare XML document using "EXEC
sp_xml_preparedocument @idoc OUTPUT, @doc" which is required for OPENXML
statement. However how to use global variables with sp_xml_preparedocument?
I tried to put "?" instead of its arguments and then map it to global
variables however I get "syntax error or access violation" when I click
parameters button.

So what's the correct way to use global variables in such situation? Or
maybe there is a better way to handle XML files within DTS?

Regards
Silmar



Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.