title: Converting nvarchar(max) data type to string in Java
body: <p>I am executing following sql query on SQL Server 2008 using jTDS API:</p>
  
  <pre><code>SELECT  a , b , c FROM [db].[dbo].[table] where d = 1;
  </code></pre>
  
  <p>And data type for these three fields are as follows:</p>
  
  <pre><code>a  -- nvarchar(255)
  b  -- nvarchar(255)
  c  -- nvarchar(max)
  </code></pre>
  
  <p>When I execute query using Java, the string values for a and b are plain text, but for c I am getting following value: </p>
  
  <pre><code>net.sourceforge.jtds.jdbc.ClobImpl@2b34fb
  </code></pre>
  
  <p>It seems it is stored as object, how can I convert it to normal string ?</p>