Share via


LocalDBUnshareInstance Function

Stops the sharing of the specified SQL Server Express LocalDB instance.

Header file: sqlncli.h

Syntax

HRESULT LocalDBUnShareInstance(
           PCWSTR pInstanceSharedName, 
           DWORD dwFlags 
);

Parameters

  • pInstanceSharedName
    [Input] The shared name for the LocalDB instance to unshare.

  • dwFlags
    [Input] Reserved for future use. Currently should be set to 0.

Returns

Remarks

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

See Also

Concepts

SQL Server Express LocalDB Header and Version Information