A small free .Net and JS library (with demo UI, command-line bulk formatter, SSMS/VS add-in, notepad++ plugin, winmerge plugin, and demo webpage) for reformatting and coloring T-SQL code to the user's preferences.
When I use this tool and sometimes need to format a dynamic sql string like the one below:
'select ''.txt'' as fileExt'
and I try to format it wont format much as the whole string is quoted.. but when I remove the begin and end quote for the statement and try to format this below:
select ''.txt'' as fileExt
I get output
SELECT ''.txt '' AS fileExt
which introduces a subtle (but nasty for middle tier) with an extra space after .txt !!
could you please fix this bug and let me know when it is checked in
When I use this tool and sometimes need to format a dynamic sql string like the one below:
'select ''.txt'' as fileExt'
and I try to format it wont format much as the whole string is quoted.. but when I remove the begin and end quote for the statement and try to format this below: select ''.txt'' as fileExt I get output SELECT ''.txt '' AS fileExt which introduces a subtle (but nasty for middle tier) with an extra space after .txt !!
could you please fix this bug and let me know when it is checked in