After you capture the SQL statements in your .NET application and bind the SQL to databases that the application uses, you are ready to use static SQL to run the application.
If you want to see the SQL in your application that is running statically, you can trace it in log files. You can specify the location and names of the log files.
Prerequisites:
To run a .NET application with static SQL:
The Set Up .NET Application to Optimize SQL Queries window opens.
The SQL statements in the .NET application that are bound in the packages run statically. If a package is not bound and you set its corresponding data connection Run SQL value to Static, the IBM® DB2® and IDS Data Provider does not throw an exception. The application continues to run dynamic SQL.
To troubleshoot problems with SQL statements or generated packages, refer to messages in the IBM Output Message Pane.
Improving Performance and Security in .NET Applications with Static SQL | Using Static SQL in .NET Applications