Microsoft KB Archive/330019

= FIX: SQLXML that includes MDAC 2.7 or MDAC 2.8 returns GUID fields without &quot;{}&quot; characters =

Article ID: 330019

Article Last Modified on 11/15/2007

-

APPLIES TO


 * Microsoft SQLXML 3.0 Service Pack 1
 * Microsoft Data Access Components 2.7
 * Microsoft Data Access Components 2.8

-



This article was previously published under Q330019







SYMPTOMS
When you upgrade from Microsoft Data Access Components (MDAC) 2.6 that is included with SQLXML 2.6 to MDAC 2.7 that is included with SQLXML 3.0, or to MDAC 2.8 that is included with Microsoft Windows Server 2003, you find that GUID data that is retrieved through SQLXML does not contain opening and closing braces ({}) around the data. However, the same GUID data that is retrieved directly through the Microsoft SQL Server OLE DB Provider from the same SQL Server 2000 database contains opening and closing braces ({}).



RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that this article describes. Apply this hotfix only to systems that are experiencing this specific problem.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.  MDAC 2.7

Date           Time              Version               Size             File name 21-Oct-2002  5:34:05 PM  2000.81.9031.9  196,608 bytes   sqlxmlx.dll

 MDAC 2.8

Date           Time              Version               Size             File name 12-Feb-2004 16:44  2000.85.1032.0    208,896  Sqlxmlx.dll

Note For a list of all the hotfixes available for MDAC 2.8, click the following article number to view the article in the Microsoft Knowledge Base:

839801 FIX: Hotfixes are available for MDAC 2.8



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. 

Steps to reproduce the behavior
  In SQL Query Analyzer, run the following statements: use Northwind CREATE TABLE GuidTable (id int,   guidField uniqueidentifier) go insert into guidtable values(1, '{3AD5520A-8536-4AEC-878F-5648F79D7E47}') insert into guidtable values(2, '{104350EB-2CBF-4CB6-8E8B-EBFEA662E63B}') go  On a computer that has MDAC 2.7 installed, use the Configure SQLXML Support in IIS Wizard to create a directory (for example: mysqlxml_VirtDir). Make sure that this points to the Microsoft SQL Server Northwind sample database. When you configure this directory, make sure that on the Setting tab, that you click to select Allow URL queries.  Run following query:

http://mysqlhost/mysqlxml_VirtDir?sql=select * from guidtable for xml auto&root=root </li></ol>

You expect the data to appear as follows: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?> <guidtable id=&quot;1&quot; guidField=&quot;{3AD5520A-8536-4AEC-878F-5648F79D7E47}&quot; /> <guidtable id=&quot;2&quot; guidField=&quot;{104350EB-2CBF-4CB6-8E8B-EBFEA662E63B}&quot; /> However, the data that is returned does not contain the {} characters: <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?> <guidtable id=&quot;1&quot; guidField=&quot;3AD5520A-8536-4AEC-878F-5648F79D7E47&quot; /> <guidtable id=&quot;2&quot; guidField=&quot;104350EB-2CBF-4CB6-8E8B-EBFEA662E63B&quot; /> To make sure that the {} characters appear around SQLXML GUID data, install the hotfix, and then follow these steps:
 * 1) Locate the following registry key:
 * 2) Create a DWORD value that is named FORXML_GenerateGUIDBraces
 * 3) Set the Value to &quot;1&quot;. You can reset this by setting the value to &quot;0&quot;.

Keywords: kbhotfixserver kbqfe kbbug kbfix KB330019

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.