Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.55 KB

File metadata and controls

47 lines (37 loc) · 1.55 KB
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
LocalDBStartTracing
apilocation
sqluserinstance.dll
apitype DLLExport
ms.assetid c7b83833-6d2a-4a06-9cb7-42767bed52c6
author CarlRabeler
ms.author carlrab

LocalDBStartTracing Function

[!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

Syntax

HRESULT LocalDBStartTracing();  

Returns

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.

Remarks

For a code sample that uses LocalDB API, see SQL Server Express LocalDB Reference.

See Also

SQL Server Express LocalDB Header and Version Information