Skip to content

SEM006 : Count of SQL modules

Metrics rule - counts CREATE statements of stored procedure, trigger, function and views.

The rule is only informational.

The rule has a Batch scope and is applied only on the SQL script.

Rule has no parameters.

The rule does not need Analysis Context or SQL Connection.

Not configured.

Metrics

There is no additional info for this rule.

CREATE PROCEDURE testsp_CyclomaticComplexityTest
AS
BEGIN TRY
IF (12 <1 )
SELECT 1
ELSE
SELECT 2
END TRY
BEGIN CATCH
IF (12 <1 )
SELECT 1
ELSE
SELECT 2
END CATCH
IF (12 <1 )
SELECT 1
ELSE
IF (12 <1 )
SELECT 1
ELSE
SELECT 2
RETURN;
IF (12>1)
SELECT 4
ELSE
SELECT 5
 MessageLineColumn
1SEM006 : SqlModulesCount=110

Analysis Rules