MS DTC Dblib Sample

Transact-SQL Samples

Samples

MS DTC Dblib Sample

This program demonstrates how to use MS DTC in C++ using DB-Library.

Default Location

C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Msdtc\Dblib

Running the Sample

Open dblib.dsw in Microsoft® Visual C++® 6.0 and compile this program. Make sure to do the following before compiling:

  1. From the Tools menu, choose Options, and then click the Directories tab.

  2. From the Show directories for box, choose Include files and Library files, and ensure that these directories (as appropriate) are included and appear at the top of the list:
    • Include files: C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Include

    • Library files: C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Lib

To run the sample, open a Command Prompt window, and then change the current directory to where sqlcurs.exe is located. Run the program by typing "dblib -h".

See Also

MS DTC Samples