Directory Services

ADSI_DIALECT_ENUM

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

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

Values

ADSI_DIALECT_LDAP
ADSI queries are based on the LDAP dialect.
ADSI_DIALECT_SQL
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

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.

See Also

ADSI Enumerations