Generating SQL to drop tables and run SQL in product databases
You can use the Report SQL Generator to generate drop table SQL commands and run them against the appropriate product system table database. You must complete this task before you upgrade reporting schemas because you can generate and run the old SQL drop statements after upgrading.
1.
2.
Log in to IBM® EMM as the platform_admin user (or another user with access to the Report SQL Generator menu item).
3.
a.
Select Settings | Configuration | Reports | Schemas | ProductName.
b.
4.
Select Settings | Reports SQL Generator.
5.
In the Product field, select the appropriate IBM® application.
6.
In the Schema field, select one or more reporting schemas.
7.
Select the Database Type.
8.
In the Generate Type field, select the appropriate option (views, materialized views, or tables).
Materialized views are not an option when Database Type is set to Microsoft SQL Server.
If the JNDI data source names are incorrect or have not been configured, the SQL Generator cannot validate the SQL.scripts that create tables.
9.
Ensure that Generate Drop Statement is set to Yes.
10.
(Optional.) To examine the SQL that will be generated, click Generate. The SQL Generator creates the script and displays it in the browser window.
11.
Click Download.
The SQL Generator creates the script and prompts you to specify where you want to save the file. If you selected a single reporting schema from the Schema field, the script name matches the name of schema (eMessage_Mailing_Performance.sql, for example). If you selected more than one reporting schema, the script name uses the product name only (Campaign.sql, for example). For a complete list of names, see Scripts SQL por Origem de Dados.
12.
13.
*
The Interact reporting schemas reference more than one data source. Generate a separate SQL script for each data source.
There may be times when you want to disable script validation. For example, perhaps the Marketing Platform cannot connect to the IBM® application database but you want to generate the scripts anyway. To disable validation, clear the data source names from the data source fields (see step 3, above). When you generate the scripts, the SQL Generator displays a warning that it cannot connect to the data source, but it still generates the SQL script.
14.