We are happy to announce the today’s we release of SQL Enlight 1.9 Beta 2.

Here are the main release notes:

The new version can be downloaded here.

After almost a year, we are very happy to announce the release of SQL Enlight 1.9.0.587 Beta.
Here follows a list of the major new features and improvements that are included in it.

New Features

  1. Static Code Analysis TFS Check-in Policy. Both TFS 2008 and TFS 2010 are supported.
  2. Two new refectories:
    • Expand Wildcards
    • Add Statement Terminators
  3. Layout:
    • Option to ignore layout of selected statements
    • New comment layout options
  4. 25 new analysis rules. See here for complete list of the new rules.

Improvements

  • Command line tool, NAnt and MSBuild tasks improvements now support recursive processing of folders and multiple target files.
  • Analysis rules – several extensions made available including.
  • Layout command – syntax errors will not stop the layout, but will just skip the source batch.
  • Automatic updates checking.
  • Memory usage optimizations.

Free features

The following features are now free to use and are not trial limited:

  • Validate SQL Code
  • Statements History
  • Summarize Script
  • Outline Statements

The version is 1.9.0.587 and is available for download here.

We are happy to announce the release of the latest SQL Enlight version – 1.8.1.541.

Here is what’s new in this release:

In addition to the above features, the new version includes updated analysis rules and a few other improvements and small fixes.

SQL Enlight 1.8.1.541 is available for download here.

Version 1.7.3.515 of SQL Enlight is already released and available for download.

Here is what’s new in this release:

  • Extended query execution plan analysis support
  • A new analysis rule for query execution plan analysis – EX0018
  • A new external template parameter support in the command line tool and MSBuild tasks
  • Small improvements and fixes

The new parameter is added to provide a way to set external analysis template which to be used during analysis instead of the default one. Check the SQL Enlight documentation for the command line tool and MSBuild tasks parameters.

As the Execution Plan Analysis is the most important feature update in this release, here we have prepared a separate post for it.

We will be happy to help you if you have any questions or comments.

Thank you!

Last week we released a new version of SQL Enlight – 1.7.2.513.
It contains just small fixes and 2 new features:

  • A new layout rule ‘Miscellaneous->Keywords padding’.
The layout rule controls the padding of the main keywords in SELECT, INSERT,UPDATE and DELETE  statements.
For example:

-- Keyword Padding option set to 10:
SELECT     ProductID ,
           SpecialOfferID ,
           AVG( UnitPrice ) AS 'Average Price' ,
           SUM( LineTotal ) AS SubTotal
FROM       Sales.SalesOrderDetail
WHERE      SpecialOfferID IN(  1 ,
                               2 ,
                               6 ,
                               9 )
GROUP BY   ProductID ,
           SpecialOfferID
ORDER BY   ProductID ,
           SpecialOfferID DESC

-- Keyword Padding option set to 0:

SELECT ProductID ,
       SpecialOfferID ,
       AVG( UnitPrice ) AS 'Average Price' ,
       SUM( LineTotal ) AS SubTotal
FROM Sales.SalesOrderDetail
WHERE  SpecialOfferID IN(  1 ,
                           2 ,
                           6 ,
                           9 )
GROUP BY ProductID ,
         SpecialOfferID
ORDER BY ProductID ,
         SpecialOfferID DESC
  • A new XSLT extension method ‘execute-query-plan’ which to enable support for query plan analysis.

We will describe in more detail the usage of this method in the next post.

The new version is already available for download here.

We are happy to announce the release of our new online T-SQL Analyzer.

The T-SQL Analyzer uses the SQL Enlight static code analysis engine to check T-SQL code for compliance with best practices.

The online tool supports the following set of analysis rules: all rules from SA0001 to SA0039 and also rules SA0042, SA0043, SA0051, SA0053 and SA0054.

You can check here for more information about the analysis rules.

Today we released an update of SQL Enlight 1.7 which includes several usability improvements:

– Unicode support added for identifier names.

Example of unicode identifiers usage

– Context only rules are now applied when analyzing server objects using the command line tool and the MSBuild tasks. This feature was missing in the previous release.

– The Context Only rules are can be applied either with using Analyze with Specific Rules… command or when analyzing databases or servers. For instance, the Context Only rules will be skipped when a stored procedure is analyzed, but will be included when a database is selected for analysis from Object Explorer. The Context Only rules will be always applied when explicitly selected.

– Each analysis rule can be separately configured whether to require its parameters to be entered before analysis or not to require parameters. This way, the parameters dialog won’t be shown when rules with no required parameters are selected, but then the default rule parameter values will be used.

– A new Error list command which to instantly show the SQL Enlight Error List window is now added to the SQL Enlight menu.

You can find and download the updated SQL Enlight version here.

The updated analysis template includes fixes of rules SA0011 , SA0040 and SA0047. These rules had problem with matching specific rule violations inside views and table valued functions.

You can download the updated template here.

Today we released an updated analysis template for SQL Enlight. The template includes a fix of analysis rule ‘SA0044: Consider creating statistics on all composite index columns’.

There was a problem with the previous version and it was outputting the incorrect column as candidate for creating statistics.

 You can download the updated template here.