Microsoft Remote Data ServiceMicrosoft Remote Data Service*
*Contents  *Index  *Topic Contents

Query Method

Uses a valid SQL query string to return a Recordset.

Syntax

Set Recordset = DataFactory.Query Connection, Query
PartDescription
RecordsetAn object variable that represents a Recordset object.
DataFactoryAn object variable that represents an RDSServer.DataFactory object.
ConnectionA String containing the server connection information. This is similar to the Connect property.
QueryA String containing the SQL query.

Applies To

RDSServer.DataFactory

Remarks

The query should use the SQL dialect of the database server. A result status is returned if there is an error with the query that was executed. The Query method doesn't perform any syntax checking on the Query string.

Example

See Also

Getting a Recordset to the Client, Appendix B: Detailed Control Flow


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.