title: FreeTDS MSSQL nvarchar(max) issue
body: <p>I'm pulling out data from an MSSQL server via PDO on a Unix system. Having tried the Easysoft ODBC Driver, which works as intended (but expensive!) I'm just trying out FreeTDS before we commit to buying a license.</p>
  
  <p>Trying to pull out data from the SQL server that is set to nvarchar(MAX) - it comes out as some very strange characters, rather than what is expected. I am unable to edit the column types in the database.</p>
  
  <p>For instance, a value in the nvarchar(max) field is set to "admin" but comes out as " ›÷Ý" - all other column types seem to work OK.</p>
  
  <p><strong>To fix this with the Easysoft driver, I had to set "VarMaxAsVarchar" to on (<a href="http://www.easysoft.com/products/data_access/odbc-sql-server-driver/manual/configuration.html" rel="nofollow">http://www.easysoft.com/products/data_access/odbc-sql-server-driver/manual/configuration.html</a>)</strong></p>
  
  <p>Is there a similar setting from within FreeTDS?</p>
  
  <p>For reference, I am connecting to a Microsoft SQL Server 2012 database, with TDS Version set to 7.4.</p>
  
  <p>Here is the config files:</p>
  
  <p>/etc/freetds.conf:</p>
  
  <pre><code>[global]
  # TDS protocol version
  tds version = 7.4
  
  # If you get out-of-memory errors, it may mean that your client
  # is trying to allocate a huge buffer for a TEXT field.  
  # Try setting 'text size' to a more reasonable limit 
  text size = 64512
  
  [mssql_freetds]
      host = xxxxx
      port = xxxx
      tds version = 7.4
  </code></pre>
  
  <p>/etc/odbc.ini</p>
  
  <pre><code>[mssql_freetds]
  Driver=FreeTDS
  Description=MSSQL FreeTDS
  Server=xxxxx
  Port=xxxx
  TDS_Version = 7.4
  </code></pre>
  
  <p>Any thoughts?</p>