Easy way to convert exec sp_executesql to a normal query?

后端 未结 10 1279
一整个雨季
一整个雨季 2021-01-31 09:37

When dealing with debugging queries using Profiler and SSMS, its pretty common for me to copy a query from Profiler and test them in SSMS. Because I use parameterized sql, my q

10条回答
  •  感情败类
    2021-01-31 09:55

    Here is simple UI that i use to inspect NHibernate queries. Some regex, parsing and sqlformat.org API to beautify sql is used.

    
    
        
                
    
    
        
        

    Test in Fiddle

    Note: Will not work, if you have single quotes in query

提交回复
热议问题