Go to the source code of this file.
Functions | |
CA_API UINT __stdcall | ODBC_Connect (MSIHANDLE hInstall) |
Test an ODBC connection. More... | |
CA_API UINT __stdcall | ODBC_Execute (MSIHANDLE hInstall) |
Execute a SQL query, no result set. More... | |
CA_API UINT __stdcall | ODBC_Execute_Binary (MSIHANDLE hInstall) |
Execute a SQL file stored as a binary object, no result set. More... | |
CA_API UINT __stdcall | ODBC_GetString (MSIHANDLE hInstall) |
Execute a SQL query, return a string. More... | |
CA_API UINT __stdcall | ODBC_GetScalar (MSIHANDLE hInstall) |
Execute a SQL query, return a scalar. More... | |
CA_API UINT __stdcall | ODBC_GetXml (MSIHANDLE hInstall) |
Execute a SQL query, return xml data set. More... | |
CA_API UINT __stdcall | Execute_ODBC_Immediate (MSIHANDLE hInstall) |
Table-driven immediate custom action that executes ODBC statements. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension. More... | |
CA_API UINT __stdcall | Execute_ODBC_Deferred (MSIHANDLE hInstall) |
Table-driven deferred custom action that executes ODBC statements. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension. More... | |
CA_API UINT __stdcall | DataSource_ODBC_Immediate (MSIHANDLE hInstall) |
Table-driven immediate custom action that manages ODBC datasources. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension. More... | |
CA_API UINT __stdcall | DataSource_ODBC_Deferred (MSIHANDLE hInstall) |
Table-driven deferred custom action that manages ODBC datasources. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension. More... | |
CA_API UINT __stdcall DataSource_ODBC_Deferred | ( | MSIHANDLE | hInstall | ) |
Table-driven deferred custom action that manages ODBC datasources. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension.
CA_API UINT __stdcall DataSource_ODBC_Immediate | ( | MSIHANDLE | hInstall | ) |
Table-driven immediate custom action that manages ODBC datasources. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension.
CA_API UINT __stdcall Execute_ODBC_Deferred | ( | MSIHANDLE | hInstall | ) |
Table-driven deferred custom action that executes ODBC statements. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension.
CA_API UINT __stdcall Execute_ODBC_Immediate | ( | MSIHANDLE | hInstall | ) |
Table-driven immediate custom action that executes ODBC statements. Use in combination with AppSecInc.Wix.Extensions.DataSourceExtension.
CA_API UINT __stdcall ODBC_Connect | ( | MSIHANDLE | hInstall | ) |
Test an ODBC connection.
ODBC_CONNECTION_STRING | Connection string. |
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
CA_API UINT __stdcall ODBC_Execute | ( | MSIHANDLE | hInstall | ) |
Execute a SQL query, no result set.
ODBC_CONNECTION_STRING | Connection string. |
ODBC_SQL_QUERY | Query to execute. |
ODBC_SQL_DELIMITER | Batch delimiter. The contents of the SQL file will be split and executed one-by-one. Delimiter is case-insensitive, recognized only at the beginning of line. Either Type or Delimiter may be specified, not both. |
ODBC_SQL_TYPE | Type of the sql script (SqlServer, Oracle, ...). This will set appropriate delimiters for sql splitting, e.g. 'go' for SqlServer; also.will provide support for insertion commands, e.g. ':r' for SqlServer. |
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
CA_API UINT __stdcall ODBC_Execute_Binary | ( | MSIHANDLE | hInstall | ) |
Execute a SQL file stored as a binary object, no result set.
ODBC_CONNECTION_STRING | Connection string. |
ODBC_SQL_PROPERTYNAME | The name of the Binary property that contains the SQL. |
ODBC_SQL_DELIMITER | Batch delimiter. The contents of the SQL file will be split and executed one-by-one. Delimiter is case-insensitive, recognized only at the beginning of line. Either Type or Delimiter may be specified, not both. |
ODBC_SQL_TYPE | Type of the sql script (SqlServer, Oracle, ...). This will set appropriate delimiters for sql splitting, e.g. 'go' for SqlServer; also.will provide support for insertion commands, e.g. ':r' for SqlServer. |
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
CA_API UINT __stdcall ODBC_GetScalar | ( | MSIHANDLE | hInstall | ) |
Execute a SQL query, return a scalar.
ODBC_CONNECTION_STRING | Connection string. |
ODBC_SQL_QUERY | Query to execute. |
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
CA_API UINT __stdcall ODBC_GetString | ( | MSIHANDLE | hInstall | ) |
Execute a SQL query, return a string.
ODBC_CONNECTION_STRING | Connection string. |
ODBC_SQL_QUERY | Query to execute. |
ODBC_SQL_FLAGS | Optional, possible flags are: ODBC_SQL_FLAG_NO_ROWS_RETURN_EMPTY |
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
Sometimes your application needs to prompt the user for a specific directory where a database should be installed. Most of the time the users want to install the database in the default SQL Server directory. This value is stored in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup on the server and can be obtained with the the following T-SQL.
The query can be easily incorporated under a "Recommend Path" button in a wix UI using the ODBC_GetString custom action.
CA_API UINT __stdcall ODBC_GetXml | ( | MSIHANDLE | hInstall | ) |
Execute a SQL query, return xml data set.
ODBC_CONNECTION_STRING | Connection string. |
ODBC_SQL_QUERY | Query to execute. |
The xml data returned looks like this:
This custom action supports impersonation, see Impersonation in Immediate Custom Actions.
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |