I have imported the ScriptDom assemblies into my GitHub project SQLMonitor.
Assembly Project path - https://github.com/imajaydwivedi/SQLMonitor/tree/master/TSQLTextNormalizer
The feature is accessible using clr function dbo.normalized_sql_text inside from with SQLServer post importing the assembly.
The function works as expected in case of normal stored procedure or statements. But, it does not recognize special syntax like sp_ExecuteSQL or sp_prepexec.
Would it be possible to include exceptional processing of sp_executesql or sp_prepexec like stored procedure?
Sample code to test -
select dbo.normalized_sql_text('exec sp_executesql ''select * from SomeTable01''',150,0)
select dbo.normalized_sql_text('exec sp_executesql ''select * from AnotherTable02''',150,0)

I have imported the ScriptDom assemblies into my GitHub project SQLMonitor.
Assembly Project path - https://github.com/imajaydwivedi/SQLMonitor/tree/master/TSQLTextNormalizer
The feature is accessible using clr function
dbo.normalized_sql_textinside from with SQLServer post importing the assembly.The function works as expected in case of normal stored procedure or statements. But, it does not recognize special syntax like
sp_ExecuteSQLorsp_prepexec.Would it be possible to include exceptional processing of
sp_executesqlorsp_prepexeclike stored procedure?Sample code to test -