Skip to content

Instantly share code, notes, and snippets.

@ktaranov
Last active September 8, 2022 12:47
Show Gist options
  • Save ktaranov/b4466f14a13a393967eaaf85e6b15209 to your computer and use it in GitHub Desktop.
Save ktaranov/b4466f14a13a393967eaaf85e6b15209 to your computer and use it in GitHub Desktop.

TSQL Example

USE master;
GO

DECLARE @nvcmaxVariable nvarchar(max);
SET @nvcmaxVariable = CONVERT(nvarchar(max), N'ಠ russian anomaly ЯЁЪ ಠ ') + N'something else' + N'another';
SELECT @nvcmaxVariable;

SQL Example

USE master;
GO

DECLARE @nvcmaxVariable nvarchar(max);
SET @nvcmaxVariable = CONVERT(nvarchar(max), N'ಠ russian anomaly ЯЁЪ ಠ ') + N'something else' + N'another';
SELECT @nvcmaxVariable;

Markwon Examples

TRY_CONVERT TRY_CONVERT

USE master;
GO
DECLARE @nvcmaxVariable nvarchar(max);
SET @nvcmaxVariable = CONVERT(nvarchar(max), N'russian anomaly ЯЁЪ') + N'something else' + N'another';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment