Share via


IixssoQuery::CreateRecordset method

[Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.]

Executes a query and creates an ADO recordset to navigate through query results.

Syntax

HRESULT CreateRecordset(
  [in]          BSTR      pwszSequential,
  [out, retval] IDispatch *ppDisp
);

Parameters

pwszSequential [in]

Either "sequential" or "nonsequential" to create an IRowset (sequential) or an IRowsetScroll (nonsequential) recordset.

ppDisp [out, retval]

The ADO recordset object for iterating the results of a query.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Before calling CreateRecordset, you must set any required parameters for a query, such as the Query property and the Columns property.

Examples

' Create a sequential recordset
objQuery.Query = "$contents " & chr(34) & SrchStr & chr(34)"
objQuery.Columns = "DocTitle, VPath, Characterization, HitCount"
Set objRecordset = objQuery.CreateRecordset("sequential")

Requirements

Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
End of client support
Windows 7
End of server support
Windows Server 2008 R2
DLL
Ixsso.dll

See also

IixssoQuery