This 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.
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.