XML file import SQL Server 2000

Source: Internet
Author: User
Tags define command line interface
Server|xml

Q: How can I import an XML file into SQL Server 2000?

A: There are several ways to import an XML file into SQL Server, offering 3 of them:

Bulk load COM interface. If you need to extract the entity and attributes of a document into a relational table, the quickest way is to use the bulk load COM interface provided by SQL Server extensible Markup Language 3.0 Service Pack 1 (SQLXML 3.0 SP1). The large-capacity state COM interface is included in the SQLXML 3.0 SP1 free download.


Textcopy.exe Command line utility. If you do not want to extract the entity and attributes of a document into a relational table, you can use the Textcopy.exe command-line utility. Textcopy.exe is an excellent tool for moving text and image data types from a single server row or column into or out.


Data Transformation Services (DTS). If the XML document is simple, you can use DTS to extract the information line by row into the table. This approach requires that you define an XML file as an input data source, define a database table as an output data source, and write an ActiveX script to parse the character input of the "<" and ">" Methods to extract the entity, attribute, and its value.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.