16.10.2015 Views

Getting Startedwith pureQuery

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

82<br />

<strong>Getting</strong> Started with <strong>pureQuery</strong><br />

Figure 4.8 - Database Packages Page<br />

4.2.4 Enhanced impact analysis within database applications<br />

With the SQL Outline, you can gain insight into what parts of your application use certain<br />

tables, columns or views by determining the objects referenced in the statements. The<br />

database design often goes through changes during the application development stage.<br />

The inability to gain insight into many different areas of an application can make simple<br />

changes to a schema or a table a risky operation, as those changes may adversely affect<br />

other parts of the application without the knowledge of the user.<br />

The impact analysis features of the <strong>pureQuery</strong> tooling help DBAs and developers to work<br />

together to come up with database changes that would have the least impact on an<br />

application, thus mitigating risks.<br />

In the Database page, for example, you can gain insight into how much your application<br />

might need to change if a given table or view were to change. By expanding the table, you<br />

can gain insight into all the SQL statements affected and their location within your<br />

application. In the case of a change in a table’s column, such as a name change or simply<br />

by dropping it, you can use the SQL Outline filter and provide the name of the affected<br />

column to view all the affected statements. The filter can either be invoked by right-clicking<br />

anywhere on the SQL Outline and selecting Filter… from the context menu or by clicking<br />

on the inverted triangle on the toolbar and selecting Filter…<br />

For example, if you want to assess which statements are impacted by dropping the BONUS<br />

column on the EMPLOYEE table to then go to the application and change the code where<br />

necessary, you would use the filter as shown in Figure 4.9. You can see the statements<br />

that use the BONUS column only and narrow down to the specific place where those

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!