Connect Property
DataFactory Object
DataControl Object
METHOD: DataFactory::Query
Set
recordsetobject
=
datafactoryobject.
Query
(ConnectionString, QueryString)
The
Query
method executes a valid SQL query string and returns the resultant
Recordset
object. The query string must use the type (dialect) of SQL that is recognized by the provider. This method does not perform a syntax check on the query string.
There are two mandatory parameters.
The
ConnectionString
parameter is a string that contains the details of the server connection information.
The
QueryString
parameter is a string that contains the SQL query.
Code (VBScript):
Set objDataFactory = objRDS.CreateObject("RDSServer.DataFactory", strConnURL)
...
Dim objRecordset
Set objRecordset = objDataFactory.
Query
(strConnection, strQuery)
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information