Deployment Tools Foundation
ExecuteQuery Method (sql, record)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► ExecuteQuery(String, Record)
Executes the specified SQL SELECT query and returns all results.
Declaration Syntax
Return ValueAll results combined into an array
RemarksMultiple rows columns will be collapsed into a single one-dimensional list.
Win32 MSI APIs: MsiDatabaseOpenView, MsiViewExecute, MsiViewFetch
Exceptions| Exception | Condition |
|---|---|
| BadQuerySyntaxException | the SQL syntax is invalid |
| InstallerException | the View could not be executed |
| InvalidHandleException | the Database handle is invalid |