नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Applies to:
SQL Server
Stops the sharing of the specified SQL Server Express LocalDB instance.
Header file: msoledbsql.h
Syntax
HRESULT LocalDBUnShareInstance(
PCWSTR pInstanceSharedName ,
DWORD dwFlags
);
Arguments
pInstanceSharedName
[Input] The shared name for the LocalDB instance to unshare.
dwFlags
[Input] Reserved for future use. Currently should be set to 0.
Returns
S_OK: The function succeeded.
| Error | Description |
|---|---|
| LOCALDB_ERROR_NOT_INSTALLED | SQL Server Express LocalDB isn't installed on the computer. |
| LOCALDB_ERROR_INVALID_PARAMETER | One or more specified input parameters are invalid. |
| LOCALDB_ERROR_INVALID_INSTANCE_NAME | The specified instance name is invalid. |
| LOCALDB_ERROR_UNKNOWN_INSTANCE | The specified instance doesn't exist. |
| LOCALDB_ERROR_ADMIN_RIGHTS_REQUIRED | Administrator privileges are required in order to execute this operation. |
| 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.