Hide Clipart | Topics | Search
Log Out | Register | Edit Profile
Last 30 mins | 1 | 2

Technical help: XML file -> SQL Serve...

Chalanachithram.com DB » New TF Industry Related » Archive through February 26, 2015 » Technical help: XML file -> SQL Server table « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Visitor
Junior Artist
Username: Visitor

Post Number: 301
Registered: 01-2011
Posted From: 199.168.151.169

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 01:10 pm:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Twitter:

another useful link http://www.mssqltips.com/sqlservertip/2899/importing-and-pro cessing-data-from-xml-files-into-sql-server-tables/


bro, I am using this option, however syntax errors emi raavatledhu, but I am not getting any rows out...
Top of pagePrevious messageNext messageBottom of page Link to this message

Spy_india
Hero
Username: Spy_india

Post Number: 10828
Registered: 02-2008
Posted From: 172.56.32.44

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:46 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Thru query insert cheyala ??

Ssis ayite simble XML source hai select columns hai destination server table ki insert hai
Hinduism-Saism :-)
Top of pagePrevious messageNext messageBottom of page Link to this message

Sannayi_nokkulu
Comedian
Username: Sannayi_nokkulu

Post Number: 1685
Registered: 06-2014
Posted From: 199.202.216.66

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:39 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Visitor:


http://support.microsoft.com/kb/316005
Top of pagePrevious messageNext messageBottom of page Link to this message

Twitter
Legend
Username: Twitter

Post Number: 37244
Registered: 10-2009
Posted From: 65.190.85.200

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:27 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Visitor:



another useful link
http://www.mssqltips.com/sqlservertip/2899/importing-and-pro cessing-data-from-xml-files-into-sql-server-tables/
Top of pagePrevious messageNext messageBottom of page Link to this message

Visitor
Junior Artist
Username: Visitor

Post Number: 300
Registered: 01-2011
Posted From: 199.168.151.169

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:16 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

should be a relational table..

each file represents a power generator..

my table is going to look like this:

'file name a.k.a generator name', measurementDate, updateTime, lineId, origin, terminus, voltage, type, deliveredTime, megawattDelivered
Top of pagePrevious messageNext messageBottom of page Link to this message

Twitter
Legend
Username: Twitter

Post Number: 37243
Registered: 10-2009
Posted From: 65.190.85.200

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:16 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Visitor:

ain tag TransmissionLineDatafeed.. this has measurementDate and updateTime
-> sub tag is TransmissionLine (lineId, origin, terminus, voltage, type)
---> Sub tag to TransmissionLine is Measurement (deliveredTime, megawattDelivered)




oh you are reading xml data and loading as rows ..okk check if this helps
http://stackoverflow.com/questions/21378729/how-to-insert-xm l-data-into-sql-server-table
Top of pagePrevious messageNext messageBottom of page Link to this message

Visitor
Junior Artist
Username: Visitor

Post Number: 299
Registered: 01-2011
Posted From: 199.168.151.169

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:13 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Main tag TransmissionLineDatafeed.. this has measurementDate and updateTime
-> sub tag is TransmissionLine (lineId, origin, terminus, voltage, type)
---> Sub tag to TransmissionLine is Measurement (deliveredTime, megawattDelivered)
Top of pagePrevious messageNext messageBottom of page Link to this message

Twitter
Legend
Username: Twitter

Post Number: 37242
Registered: 10-2009
Posted From: 65.190.85.200

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:12 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)


Visitor:




what is the column type that you are loading this xml into.. a clob or xml or what?
Top of pagePrevious messageNext messageBottom of page Link to this message

Visitor
Junior Artist
Username: Visitor

Post Number: 298
Registered: 01-2011
Posted From: 199.168.151.169

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:09 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

"<?xml>
<transmissionlinedatafeed>
<transmissionline>
<measurement>
<measurement>
<measurement>
</transmissionline>
<transmissionline>
<measurement>
<measurement>
<measurement>
<measurement>
<measurement>
</transmissionline>
</transmissionlinedatafeed>
"
Top of pagePrevious messageNext messageBottom of page Link to this message

Visitor
Junior Artist
Username: Visitor

Post Number: 297
Registered: 01-2011
Posted From: 199.168.151.169

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:09 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

hmm, how can I paste the contents here..
Top of pagePrevious messageNext messageBottom of page Link to this message

Visitor
Junior Artist
Username: Visitor

Post Number: 296
Registered: 01-2011
Posted From: 199.168.151.169

Rating: N/A
Votes: 0 (Vote!)

Posted on Thursday, February 26, 2015 - 10:07 am:   Insert Quote Edit PostDelete PostView Post/Check IPPrint Post   Move Post (Moderator/Admin Only)Ban Poster IP (Moderator/Admin only)

Urgent help. XML data ni SQL table loki load cheyyali.. I am only providing small set of data, however there are at least 1000 files and each file has about a million rows. I can iterate through the files and load the data if I can get one file loaded (basic query to load XML to SQL is what I am looking for) See the sample data below:

<?xml>
<transmissionlinedatafeed>
<transmissionline>
<measurement>
<measurement>
<measurement>
</transmissionline>
<transmissionline>
<measurement>
<measurement>
<measurement>
<measurement>
<measurement>
</transmissionline>
</transmissionlinedatafeed>

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image HASH(0x989a3ac){Movie Clipart}
Show / hide regular icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Show / Hide Filmy icons selection options

Click on following links to open cliparts by Alphabetical Order

 A   B   C   D   E   F   G   H   I   J   K   L   M  

 N   O   P   Q   R   S   T   U   V   W   X   Y   Z  

Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: