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



The information in this article applies to:

  • Microsoft SQL Server 7.0

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

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbBug kbDSupport KB273878