LocalDBStartTracing

07/14/2025 Enables tracing of API calls for all the SQL Server Express LocalDB instances owned by the current Windows user. C++ : The function succeeded. Description LOC

Enables tracing of API calls for all the SQL Server Express LocalDB instances owned by the

current Windows user.

C++

: The function succeeded.

Description

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

Express LocalDB reference.

Express LocalDB header and version information

Expand table

msoledbsql.h
S_OK
HRESULT
LocalDBStartTracing ();