The ApplyTransform method of the Database object applies the transform to this database.
Database.ApplyTransform( storage, errorConditions )
Path to the transform file being applied. This parameter is required.
Specifies the error conditions that are to be suppressed. Specify as a combination of the following integer values.
Error condition Meaning
Adds a row that already exists.
Deletes a row that does not exist.
Adds a table that already exists.
Deletes a table that does not exist.
Updates a row that does not exist.
Transform and database code pages do not match and neither has a neutral code page.
Creates the temporary _TransformView table.
This method does not return a value.
The ApplyTransform method delays transforming tables until the last possible moment. The steps taken in ApplyTransform are to immediately transform the table and column catalogs for the database. The table and column catalogs are updated according to which table is added or deleted and which column is added (no deletion of columns is allowed). If a table is currently loaded in memory and needs to be transformed, it is transformed. Otherwise, the table state is set to that requiring a transform so that when the table is loaded, or when the database is committed, the transform is applied. Transform in this instance means that the actual (row) data of the table is added, deleted, or updated.
If the method fails, you can obtain extended error information by using the LastErrorRecord method.
||Windows Installer 5.0 on Windows Server 2012, Windows 8, Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003 or Windows XP
||IID_IDatabase is defined as 000C109D-0000-0000-C000-000000000046