Click to open or copy the files for the DbLib sample.
This sample C++ program uses 32-bit Visual C++ and the DB-Library interface to communicate with both MS DTC and SQL Server.
This example uses MS DTC (Distributed Transaction Coordinator) to perform simultaneous updates on two SQL Servers. The transaction in this example is client-initiated. The client also initiates the commit operation.
This sample uses the DB-Library interface to communicate with both MS DTC and SQL Server. In this particular example, the preinstalled SQL Server table Authors is used.
This sample uses the following keywords:
begintransaction; commit; dbcmd; dbdead; dberrhandle; dbexit; dblogin; dbmsghandle; dbresults; dbsetlapp; dbsetlpwd; dbsetluser; dbsqlexec; dbuse; dtcgettransactionmanager; enlist; err_handler; executestatement; exit; failed; initglobals; logontodb; lstrcpy; msg_handler; printf; ptransaction-release; release; sprintf