LocalDBGetVersions

07/14/2025 Returns all SQL Server Express LocalDB versions available on the computer. C++ [Output] Contains names of the LocalDB versions that are available on the user's w

Returns all SQL Server Express LocalDB versions available on the computer.

C++

[Output] Contains names of the LocalDB versions that are available on the user’s workstation.

[Input/Output] On input holds the number of slots for versions in the

pVersionNames

buffer.

On output, holds the number of existing LocalDB versions.

: The function succeeded.

Description

LOCALDB_ERROR_NOT_INSTALLED

Express LocalDB isn’t installed on the computer.

Expand table

msoledbsql.h
S_OK
#define MAX_LOCALDB_VERSION_LENGTH 43typedef WCHAR TLocalDBVersion [
MAX_LOCALDB_VERSION_LENGTH + 1 ] ;
typedef
TLocalDBVersion* PTLocalDBVersion;
HRESULT
LocalDBGetVersions (
PTLocalDBVersion pVersion ,
LPDWORD lpdwNumberOfVersions);