|
David is asked to add a StatusID column to the Customers table, and to include
that column in all the Customer reports. He must also include the new column in
any intranet pages that update the Customers table.
David uses SQL Editor to search
for objects containing "Customers". He finds
four stored procedures, two views and the table itself. These objects are
displayed together in a search results folder. Clicking on each of the objects
in turn, David can easily view and amend them as necessary.
He runs similar searches to look for references to the two views, and finds that
six other stored procedures, all apparently involved in Customer reporting, use
the views. His previous search results remain visible, so he can easily backtrack
to check he has covered all the objects he should.
Because all the information is easily available, David can spend more time
getting on with the work he enjoys: fixing code.
How would this be done without SQL Editor?
David could have used one of two conventional approaches:
If he is lucky enough to be familiar with the system, he might use
this knowledge to help him determine which objects
should be modified. But even an experienced developer is likely to miss
something using this approach in a complex system.
Alternatively, he could script the entire database, and use a text editor to
search for references to the Customers table. Having discovered the views, he
would then have to finish searching the script for Customer references, go back
to the top and search for references to each of the views in turn.
David would also have briefly considered how up-to-date the documentation might
be, and wondered if he could rely on it to help make his changes. More than
likely, he would discount that approach as too risky.
In summary, by using SQL Editor, David will save himself time and be more accurate
in his work.
|