Comments
4 comments
-
It actually looks like it is caused by the inclusion of this from the release notes:
- Added refactoring option to prefix 'N' to literal strings when assigning to a unicode NCHAR/NVARCHAR variable. Found under Prompt -> Options -> Style.
-
Thanks for posting the workaround - works for me.
-
So sorry for this issue in the latest release!
I've logged a bug for this with internal reference, SP-6892, and we will post here once we have a fix. -
Hi @Ngainer ,
We have released SQL Prompt 9.1.5.4619 which fixes this issue. Thanks again for reporting!
You can download it here:
http://download.red-gate.com/checkforupdates/SQLPrompt/SQLPrompt_9.1.5.4619.exe
Best,
Michael
Add comment
Please sign in to leave a comment.
Now the "Format SQL" command fails if the script declares a variable with sysname.
You will receive the following error: Error refactoring unicode strings.
It looks like it doesn't even have to be within a stored procedure. This fails also:
This is a big issue considering our environment has logging constructs in our stored procedures that use sysname. This means I can't format any of our existing stored procedures.