EnumVersionInfo Method (SQL-DMO)

The EnumVersionInfo method returns a QueryResults object enumerating the members of the VERSIONINFO resource identifying the installed version of Microsoft® SQL Server™.

Applies To

SQLServer Object

Syntax

object.EnumVersionInfo( [ Prefixes ] ) as QueryResults

Part Description
object Expression that evaluates to an object in the Applies To list
Prefixes Comma-delimited string naming VERSIONINFO resource members and optionally directing output to list only those members specified

Returns

A QueryResults object containing one result set defined by these columns.

Column Data type Description
Index smallint Offset of the member in the structure.
Name nvarchar(33) Friendly name of the structure member.
Internal_Value integer If applicable, member value. Contains values only when the member is defined as a numeric value.
Character_Value nvarchar(121) Member value as a string.

Prototype (C/C++)

HRESULT EnumVersionInfo(
LPSQLDMOQUERYRESULTS* ppResults,
SQLDMO_LPCSTR szPrefixes = NULL);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.