T-SQL : duplication detected on extended property creation

When you are inserting extended properties on top of your SQL Server tables, you have to call the sp_addextendedproperty stored procedure.

Here is an example :

EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'frequency (in minutes)', @level0type = N'SCHEMA', @level0name = N'myschema', @level1type = N'TABLE', @level1name = N'mytable', @level2type = N'COLUMN', @level2name = N'frequence';

When analyzing the script, Sonar (my version is 9.3.0.51899) sees those multiple calls and treats them as code duplication.