<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Proc Append will hit Invalid Precision Error to NVARCHAR(MAX) column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Append-will-hit-Invalid-Precision-Error-to-NVARCHAR-MAX/m-p/390076#M277593</link>
    <description>&lt;P&gt;Hi Guys. I am using SAS Data Integration Studio 4.902 to do ETL jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently, there is a column that requires to change to 5000 characters from 2000.&lt;/P&gt;&lt;P&gt;I am using Microsoft SQL and SAS DI is connected through ODBC Driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My column in SQL is nvarchar(MAX) and if i do Append in Table Loader, I will get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Error binding parameters: [Microsoft][SQL Server Native Client 11.0]Invalid precision value&lt;/PRE&gt;&lt;P&gt;I did some checking online but there are 2 "solutions" suggested:&lt;/P&gt;&lt;P&gt;1) set bulkload=yes in libname statement(Doesn't work)&lt;/P&gt;&lt;P&gt;2) use NCHAR(MAX) as NVARCHAR(MAX) only allows up to 4000 words.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i know if there is alternative solution?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 01:52:35 GMT</pubDate>
    <dc:creator>imdickson</dc:creator>
    <dc:date>2017-08-23T01:52:35Z</dc:date>
    <item>
      <title>Proc Append will hit Invalid Precision Error to NVARCHAR(MAX) column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Append-will-hit-Invalid-Precision-Error-to-NVARCHAR-MAX/m-p/390076#M277593</link>
      <description>&lt;P&gt;Hi Guys. I am using SAS Data Integration Studio 4.902 to do ETL jobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recently, there is a column that requires to change to 5000 characters from 2000.&lt;/P&gt;&lt;P&gt;I am using Microsoft SQL and SAS DI is connected through ODBC Driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My column in SQL is nvarchar(MAX) and if i do Append in Table Loader, I will get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Error binding parameters: [Microsoft][SQL Server Native Client 11.0]Invalid precision value&lt;/PRE&gt;&lt;P&gt;I did some checking online but there are 2 "solutions" suggested:&lt;/P&gt;&lt;P&gt;1) set bulkload=yes in libname statement(Doesn't work)&lt;/P&gt;&lt;P&gt;2) use NCHAR(MAX) as NVARCHAR(MAX) only allows up to 4000 words.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i know if there is alternative solution?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 01:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Append-will-hit-Invalid-Precision-Error-to-NVARCHAR-MAX/m-p/390076#M277593</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-08-23T01:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Append will hit Invalid Precision Error to NVARCHAR(MAX) column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Append-will-hit-Invalid-Precision-Error-to-NVARCHAR-MAX/m-p/390107#M277594</link>
      <description>&lt;P&gt;A bit confused here. Dont you need to change type the field in SQL server?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 04:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Append-will-hit-Invalid-Precision-Error-to-NVARCHAR-MAX/m-p/390107#M277594</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-08-23T04:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Append will hit Invalid Precision Error to NVARCHAR(MAX) column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Append-will-hit-Invalid-Precision-Error-to-NVARCHAR-MAX/m-p/390149#M277595</link>
      <description>It's Ok.&lt;BR /&gt;What i meant was that nvarchar(max) in SQL does not support more than 4000 words. What i did was change to NTEXT in SQL and it works like a charm.</description>
      <pubDate>Wed, 23 Aug 2017 08:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Append-will-hit-Invalid-Precision-Error-to-NVARCHAR-MAX/m-p/390149#M277595</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-08-23T08:44:11Z</dc:date>
    </item>
  </channel>
</rss>

