How to use XQuery to query XML data from a SQL Server 2000 database in SQL Server 2005 (906566)
The information in this article applies to:
- Microsoft SQL Server 2005 Developer Edition
- Microsoft SQL Server 2005 Enterprise Edition
- Microsoft SQL Server 2005 Express Edition
- Microsoft SQL Server 2005 Standard Edition
- Microsoft SQL Server 2000 Developer Edition
- Microsoft SQL Server 2000 Standard Edition
- Microsoft SQL Server 2000 Enterprise Edition
- Microsoft SQL Server 2000 Personal Edition
- Microsoft SQL Server 2000 Enterprise Evaluation Edition
- Microsoft SQL Server 2000 Workgroup Edition
- Microsoft SQL Server 2000 Desktop Engine (MSDE)
- Microsoft SQL Server 2000 Developer Edition 64 bit
- Microsoft SQL Server 2000 Enterprise Edition 64-bit
SUMMARYThis article discusses how to use XQuery in Microsoft SQL Server 2005 to query XML data from a Microsoft SQL Server 2000 database. You may want to include well-formed XML tags in the text data of the SQL Server 2000 database before you query the data from SQL Server 2005.
You can include the XML tags in text data for testing, for string parsing and comparison, and for easier reading. You may want to include XML tags when you store long text data that contains multiple elements of data in a SQL Server 2000 database. For example, a sales journal entry may contain names, telephone numbers, action items, and other information. When the data in the SQL Server 2000 database is migrated to SQL Server 2005, you can directly query the data by using XQuery in SQL Server 2005.
You can use this technique to read relational data and
XML data from a computer that is running SQL Server 2000 in the same batch.REFERENCESFor more information, visit the following Microsoft Web
sites:
| Modification Type: | Major | Last Reviewed: | 3/10/2006 |
|---|
| Keywords: | kbsql2005xml kbhowto KB906566 kbAudITPRO kbAudDeveloper |
|---|
|