Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

Importing XML Files Into SQL Server Expand / Collapse
Author
Message
Posted Monday, March 15, 2010 7:27 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, April 6, 2014 3:04 AM
Points: 6, Visits: 67
another issue just came up ....

i have come across some xml files that have the following:
-
- <Circuit Name="13B-10" Adrs="710" G="13B" Ofst="1" Micro="0" SvrID="0" ProcID="727842327" PrgIndx="641" PrgStp="2" Mode="7" A="37.91" StpAH="96.6" V="18.7" Tmp="32.0" StpT="152" RunTime="184" Comm="0" Tick="4095" Pwr="True" MainC="" ES="100" TLeft="392.0582" AccumAH="113.616" -Alarm="0" ProcStart="2/16/2010 9:17:34 PM" ProcEnd="12:00:00 AM" ProcInfo="" -ProcFree="12:00:00 AM" -TIA="0" TIV="0" TIT="0" Cyc="0" AT="0" CR="0" TCR="0">
- <Prg Name="269PMPG" Indx="641" AcummAH="False">
- <Stp ID="1" Cod="7" N2="34.1" T12="17"></Stp>
- <Stp ID="2" Cod="7" N2="40" T12="221"></Stp>
- <Stp ID="3" Cod="7" N2="34.1" T12="40.9"></Stp>
- <Stp ID="4" Cod="7" N2="25.5" T12="52.6"></Stp>
- <Ext>
-
- </Ext>
- </Prg>
- <UData></UData>
- </Circuit>
-</Circuits> <Stp ID="2" Cod="7" N2="40" T12="221"></Stp>
- <Stp ID="3" Cod="7" N2="34.1" T12="40.9"></Stp>
- <Stp ID="4" Cod="7" N2="25.5" T12="52.6"></Stp>
- <Ext>
-
- </Ext>
- </Prg>
- <UData></UData>
- </Circuit>
-</Circuits>1" Cod="7" N2="40" T12="527.3"></Stp>
- <Ext>
-
- </Ext>
- </Prg>
- <UData></UData>
- </Circuit>
-</Circuits>ircuits>ts>s>ts>cuits>"></Stp>
- <Ext>
-
- </Ext>
- </Prg>
- <UData></UData>
- </Circuit>
-</Circuits>


don't mind the "-" as this what i did to post the text in the forum. The first element of -<Circuit> is fine as you can see but below you can see where the file has gotten corrupted and there is a bunch of -</Circuits> ... some are even incomplete within the < identifiers. I would like to truance the bulk load at the end of the good data. This is giving me a sql server first exception error.
Post #883483
Posted Tuesday, June 22, 2010 5:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, June 22, 2010 5:20 AM
Points: 1, Visits: 0
How to save xml file data into sql server database by using vb.net
Post #940934
Posted Friday, August 6, 2010 5:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, September 22, 2010 1:33 AM
Points: 2, Visits: 5
Hi there,

I tried using this article but i get an object required error on the line

Set wsh = WScript.CreateObject("WScript.Shell") ?
Post #965028
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse