Deployment Tools Foundation
Execute Method (sqlFormat, args)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► Execute(String, array<Object>[]()[])
Executes the query specified by a SQL string. The query may not be a SELECT statement.
Declaration Syntax
RemarksThe sqlFormat parameter is formatted using Format(String, array<Object>[]()[]).
Win32 MSI APIs: MsiDatabaseOpenView, MsiViewExecute
Exceptions| Exception | Condition |
|---|---|
| BadQuerySyntaxException | the SQL syntax is invalid |
| InstallerException | the View could not be executed |
| InvalidHandleException | the Database handle is invalid |