-
Prerequisites
-
Running SQL Auditor
-
Run SSW SQL Auditor

-
Choose a data source.
-
Enter the connection string to your database.
-
The build button provides a screen to select the server and database to use.

-
Process the Database. This step reads the database schema.

-
Select Database Optimization" wizard in the application main menu

-
Select the rules you'd like to ensure your SQL database complies with

-
Review the summary of violations for each rule by clicking on button in the
"Problems" column, or all rules at once by clicking on
"Report(All)" button. Clicking on "SQL" button will take
you to the screen with automatically generated SQL script to fix rule
violations. Clicking on the "Wizard" button will open relevant Wizard
that will guide you through a few steps to create an SQL script.

-
Check the report for detail on the rule violations

-
Clustered Index Wizard
This Wizard can help to optimize SQL Server performance by analyzing the data
in a table and recommending candidate columns for a clustered index. It will
generate a SQL script to add or change the clustered index for the selected
column.
Details...

Figure: Select table to generate clustered index script.

Figure: Generating a clustered index on a table column.

Figure: Set and review the Options to create clustered index.

Figure: Clustered index script generated by SQL Auditor.
-
Relationships Wizard
This wizard lets you modify relationships constraints on all tables.

Figure:
Choose your script creation options

Figure: The auto-generated script
-
Timestamp Wizard
The timestamp Wizard will add timestamp columns to any or all tables that do
not have a timestamp column.

Figure: The Timestamp Wizard

Figure: SQL Auditor generated script for adding timestamp columns.
-
Validate Foreign Key
columns Wizard
Many SQL Server database programmers use standard naming conventions such as ID
in the column name to indicate a relationship with another table. i.e.
ClientID. This wizard identifies columns ending with 'ID' which are missing
FOREIGN KEY constraints and suggests relationships, where possible.

Figure: The Foreign Key Relationship Wizard.

Figure: Set Foreign Key Columns.