--- title: "Trace File | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual helpviewer_keywords: - "trace files [ODBC]" - "tracing options [ODBC], trace files" ms.assetid: ec97f949-126f-40a2-b67e-e74520a524cb author: David-Engel ms.author: v-daenge --- # Trace File An application specifies the trace file either by setting the **TraceFile** keyword in the Odbc.ini registry entry or by calling **SQLSetConnectAttr** with the SQL_ATTR_TRACEFILE connection attribute. If the file does not exist when tracing is enabled, the Driver Manager will create the file. Each application should have its own dedicated trace file to avoid contention. An application can use more than one trace file; an application's setup program can provide the user with a choice of trace files. If tracing is enabled dynamically, an application can also display trace results, rather than logging to the trace file. The trace file provides a log of each ODBC function call with the data types and values of all arguments. It logs all input functions and logs all returned functions with return codes and error states. In ODBC *3.x*, parameters to connection functions are not provided to the trace DLL.