Get Total Line Counts for all SQL Server Source Objects Using PowerShell
I want to count the number of lines of code for all of our non-CLR procedures, views and UDFs in a database, how can I do this? I also want to exclude comments and empty lines from the counts.