Add 'N' to unicode type literal strings
Hi,
Is it possible to format below code
DECLARE @a VARCHAR(200);
SELECT @a = 'asdf';
DECLARE @b NVARCHAR(200);
SELECT @b = 'asdf';
to
DECLARE @a VARCHAR(200);
SELECT @a = 'asdf';
DECLARE @b NVARCHAR(200);
SELECT @b = N'asdf';
Thanks.
Hello,
We have added this feature in SQL Prompt 9.1.4.4532
It can be found under Prompt → Options → Style
It currently only works with variable assignments for variables declared in the same script.
If you would like to see us expand this more please let us know by creating a new idea.
Kind Regards,
The Prompt Team
-
Thomas Franz commented
additional it would nice to have a Unicode / un-Unicode-function in this little Ctrl-Menu that adds / removes the 'N' in all strings in the selection.