Getting started

Analyzing a database

  1. Select a database in the object explorer
  2. Click Analyze database in the SQL Code Guard window
  3. After a few moments a list of detected issues is generated
  4. Double click on an issue or click on the eye icon to open the object and navigate to the issue
  5. Click on the question mark icon to invoke more detailed documentation on the error

Analyzing the script in a query window

  1. Open a query window
  2. Click Analyze query in the SQL Code Guard window
  3. After a few moments a list of detected issues is generated
  4. Double click on an issue or click on the eye icon to navigate to the position of the issue in the script
  5. Click on the question mark icon to invoke more detailed documentation on the error

Ignoring rules

You may want to exclude some rules from the check.

  1. Click the Rules botton on the right of the SQL Code Guard window
  2. A list of rules will appear
  3. Using the dropdown, change the value from Warning to Ignore
  4. Click OK to persist your changes

Note: These settings can be shared as a standard rule set for your team, or used as a command line switch to specify the rule selection for your automated static analysis scenarios. The rule selections are saved in %APPDATA%\SqlCodeGuard.Addin\settingsv3.xml. 


Didn't find what you were looking for?