<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>SSMS on bradleycarey.com</title>
    <link>https://bradleycarey.com/tags/ssms/</link>
    <description>Recent content in SSMS on bradleycarey.com</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 02 Sep 2023 22:22:18 -0400</lastBuildDate>
    <atom:link href="https://bradleycarey.com/tags/ssms/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SSMS – Selecting rows as json truncates long json strings</title>
      <link>https://bradleycarey.com/posts/selecting-rows-as-json-truncates-long-json-strings/</link>
      <pubDate>Sun, 18 Nov 2018 00:40:04 -0500</pubDate>
      <guid>https://bradleycarey.com/posts/selecting-rows-as-json-truncates-long-json-strings/</guid>
      <description>&lt;p&gt;In the newer versions of Microsoft SQL Server, it is now super easy to &lt;a href=&#34;https://docs.microsoft.com/en-us/sql/relational-databases/json/format-query-results-as-json-with-for-json-sql-server&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;return selected rows as json data&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Unfortunately, SSMS seems to truncate json strings that are longer than 2033 chars no matter what you do. This seems to happen no matter if you show the results in the grid, text, or a file.&lt;/p&gt;&#xA;&lt;p&gt;Here is a workaround using a variable and &lt;code&gt;PRINT&lt;/code&gt; if you want to just get the json string on your clipboard:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
