This method executes the specified SQL query against the Microsoft® Repository database, and returns a collection of Repository objects. The columns that are returned by the query must be either just the internal identifier (IntID) column, or the internal identifier and the type identifier (IntID, TypeID) columns of the RTblVersions table.
Set variable = object.ExecuteQuery(queryString)
The ExecuteQuery method syntax has the following parts.
Part | Description |
variable | Declared as an ObjectCol object. Receives the collection of objects that meet the selection criteria of the SQL query. |
object | The object that represents the open Repository instance through which this program is interacting with the repository. |
queryString | A string that contains the SQL Query or the name of a stored procedure to be executed. |