LocalDBCreateInstance

07/14/2025 Creates a new SQL Server Express LocalDB instance. C++ [Input] The LocalDB version, for example 11.0 or 11.0.1094.2. [Input] The name for the LocalDB instance t

Creates a new SQL Server Express LocalDB instance.

C++

[Input] The LocalDB version, for example 11.0 or 11.0.1094.2.

[Input] The name for the LocalDB instance to create.

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

: The function succeeded.

Expand table

msoledbsql.h
S_OK
HRESULT
LocalDBCreateInstance (
PCWSTR wszVersion ,
PCWSTR pInstanceName ,
DWORD dwFlags
);