Description
This method allows an open McDBDatabase object to become attached to (i.e. queried by) this McDBQuery, when executed.
-
Return Type
-
None
-
Syntax
-
object.AttachDatabase ToSearch
The AttachDatabase Method syntax has these parts: |
| object | An expression evaluating to an object of type McDBQuery. | | ToSearch | Required. A McDBDatabase object. A pointer to the McDBDatabase to add to the databases queried.
| Remarks
This method may be used as an alternative to CMcDBDatabase.CreateQuery() to set an initial Query database. Further, an McDBDatabase is only attached to a query once. Calling this method with a database that has already been attached will have no effect (S_FALSE is returned). McDBDatabase instances must also be open prior to calling this method, otherwise it will return E_INVALIDARG.
Exceptions
|