ADSI_DIALECT_ENUM enumeration (iads.h)

The ADSI_DIALECT_ENUM enumeration specifies query dialects used in the OLE DB provider for ADSI.

Syntax

typedef enum __MIDL___MIDL_itf_ads_0000_0000_0023 {
  ADSI_DIALECT_LDAP = 0,
  ADSI_DIALECT_SQL = 0x1
} ADSI_DIALECT_ENUM;

Constants

 
ADSI_DIALECT_LDAP
Value: 0
ADSI queries are based on the LDAP dialect.
ADSI_DIALECT_SQL
Value: 0x1
ADSI queries are based on the SQL dialect.

Remarks

An ActiveX Data Object (ADO) client can use one of the two ADSI query dialects to query a directory. For more information about the ADSI query dialects, see Searching with ActiveX Data Objects.

Note  Because Visual Basic Script (VBScript) cannot read data from a type library, VBScript applications do not recognize the symbolic constants as defined above. Use the numerical constants to set the appropriate flags in your VBScript applications. To use the symbolic constants as a good programming practice, write explicit declarations of such constants, as done here.
 

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header iads.h

See also

ADSI Enumerations