Created
October 27, 2016 23:11
-
-
Save gazlu/38aca5de828342feb62b3a9d58107abd to your computer and use it in GitHub Desktop.
View large Nvarchar to debug in sql server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE BULKnvarchar nvarchar(max) | |
SELECT CAST('<data><![CDATA[' + @BULKnvarchar + ']]></data>' as xml) | |
-- use tools like 'http://coderstoolbox.net/string/#!encoding=xml&action=decode&charset=us_ascii' this | |
-- to decode the xml inside data element |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment