Deployment Tools Foundation
ExecuteIntegerQuery Method (sqlFormat, args)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► ExecuteIntegerQuery(String, array<Object>[]()[])
Executes the specified SQL SELECT query and returns all results as integers.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
![](collapse_all.gif)
All results combined into an array
![](collapse_all.gif)
The sqlFormat parameter is formatted using Format(String, array<Object>[]()[]).
Multiple rows columns will be collapsed into a single one-dimensional list.
Win32 MSI APIs: MsiDatabaseOpenView, MsiViewExecute, MsiViewFetch
![](collapse_all.gif)
Exception | Condition |
---|---|
BadQuerySyntaxException | the SQL syntax is invalid |
InstallerException | the View could not be executed |
InvalidHandleException | the Database handle is invalid |