Execute Method (sql, record)

Microsoft Deployment Tools

Deployment Tools Foundation Execute Method (sql, record)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerDatabaseExecute(String, Record)
Executes the query specified by a SQL string. The query may not be a SELECT statement.
Declaration Syntax
C# Visual Basic Visual C++
public void Execute(
	string sql,
	Record record
)
Public Sub Execute ( _
	sql As String, _
	record As Record _
)
public:
void Execute(
	String^ sql, 
	Record^ record
)
Parameters
sql (String)
SQL query string
record (Record)
Optional Record object containing the values that replace the parameter tokens (?) in the SQL query.
Remarks
Exceptions
Exception Condition
BadQuerySyntaxException the SQL syntax is invalid
InstallerException the View could not be executed
InvalidHandleException the Database handle is invalid

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)