| title | LocalDBStopTracing Function |
|---|---|
| description | LocalDBStopTracing disables tracing of API calls for all the SQL Server Express LocalDB instances owned by the current Windows user. |
| author | markingmyname |
| ms.author | maghan |
| ms.reviewer | randolphwest |
| ms.date | 07/14/2025 |
| ms.service | sql |
| ms.topic | reference |
| apilocation | sqluserinstance.dll |
| apiname | LocalDBStopTracing |
| apitype | DLLExport |
[!INCLUDE SQL Server]
Disables tracing of API calls for all the SQL Server Express LocalDB instances owned by the current Windows user.
Header file: msoledbsql.h
HRESULT LocalDBStopTracing();S_OK: The function succeeded.
| Error | Description |
|---|---|
| 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.