| title | LocalDBStartTracing Function | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 03/03/2017 | |
| ms.prod | sql | |
| ms.prod_service | database-engine | |
| ms.reviewer | ||
| ms.technology | ||
| ms.topic | reference | |
| apiname |
|
|
| apilocation |
|
|
| apitype | DLLExport | |
| ms.assetid | c7b83833-6d2a-4a06-9cb7-42767bed52c6 | |
| author | CarlRabeler | |
| ms.author | carlrab |
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md] Enables tracing of API calls for all the SQL Server Express LocalDB instances owned by the current Windows user.
Header file: sqlncli.h
HRESULT LocalDBStartTracing();
S_OK
The function succeeded.
LOCALDB_ERROR_XEVENT_FAILED
Failed to start XEvent engine within the LocalDB Instance API.
LOCALDB_ERROR_INTERNAL_ERROR
An unexpected error occurred. See the event log for details.
For a code sample that uses LocalDB API, see SQL Server Express LocalDB Reference.