Microsoft KB Archive/273878

= BUG: xa.h Include File is not Found When You Compile Code with the SQL Server 7.0 Development Tools =

Article ID: 273878

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q273878



BUG #: 57807 (SQLBUG_70)



SYMPTOMS
The following error message may occur when you compile a client application that uses the Distributed Transaction Coordinator (DTC) in C code and you are using the development tools that are included on the SQL Server 7.0 CD:

ERROR : Include file xa.h not found.



CAUSE
The SQL Server Development Tools are installed as part of the custom install process for SQL Server 7.0. With a custom install of SQL Server, selecting Development Tools installs the programming tools that you can use when you write programs in C for SQL Server. The Development Tools option installs the include (*.h) files and library (*.lib) files needed by a C developer to create programs that use OLE DB, Open Database Connectivity (ODBC), DB-Library, Open Data Services, SQL Distributed Management Objects (SQL-DMO), Embedded SQL for C, and Microsoft Distributed Transaction Coordinator (MS DTC). These files are installed in the \Mssql7\DevTools\Include and the \Mssql7\DevTools\Lib folders by default (the program files location). One of the files that is installed is txdtc.h, which references the xa.h include file. However, xa.h is not shipped on the SQL Server 7.0 CD.



WORKAROUND
The xa.h file is installed as part of Microsoft Visual Studio 6.0 and placed in the \Visual Studio\VC98\Include folder.

Copy the xa.h file from the \Visual\Studio\VC98\Include folder to the following destination:

\MSSQL\Devtools\Include



STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0.



MORE INFORMATION
All of these header files are also available with the Microsoft Distributed Transaction Coordinator (MS DTC) Software Development Kit (SDK).

Additional query words: xa h

Keywords: kbbug kbpending KB273878

-

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

© Microsoft Corporation. All rights reserved.