Search code examples
sql-servercode-metrics

Counting lines of code of Stored Procedures in SQL Server 2005


Using SQL Server 2005 management studio, I have exported each Sprocs and Functions as a separate .sql file.

Is there a way that using CLOC tool, I can produce lines of code metric?

The CLOC site states that it supports SQL but it does not generate any metric in this case.

Thanks,

Ajit.


Solution

  • I got a tool that satisfies my requirement:

    http://www.downloadthat.com/windows/Programming/Misc-Tools/OxyProject-Metrics_download.html

    If anything better, pl share it.

    Thanks.

    Ajit.