<?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 CLI cursor fetch error: [Microsoft][SQL Server Native Client 11.0]Numeric value out of range in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251062#M268757</link>
    <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.3&lt;/P&gt;
&lt;P&gt;EG 5.1&lt;/P&gt;
&lt;P&gt;SQL Server 2014&lt;/P&gt;
&lt;P&gt;Windows 7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am stuck with an issue when pulling the data from SQL through an ODBC connection. I am using the below code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;connect to odbc (&amp;amp;connectA);&lt;BR /&gt;create table test as &lt;BR /&gt;select * from&lt;BR /&gt;connection to odbc&lt;BR /&gt;(select * from [DB - Production].pri.test) ;&lt;BR /&gt;disconnect from odbc; &lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;When I run the code it gives me the above error. When I investigated it there is a column in SQL that SAS doesn't like which is 'ABCDE' in (time(0), null) format. The rest of the columns are coming along fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I should I do to pull this column along with others without erroring?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2016 09:23:24 GMT</pubDate>
    <dc:creator>KiranMaddi</dc:creator>
    <dc:date>2016-02-19T09:23:24Z</dc:date>
    <item>
      <title>CLI cursor fetch error: [Microsoft][SQL Server Native Client 11.0]Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251062#M268757</link>
      <description>&lt;P&gt;Hello Friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.3&lt;/P&gt;
&lt;P&gt;EG 5.1&lt;/P&gt;
&lt;P&gt;SQL Server 2014&lt;/P&gt;
&lt;P&gt;Windows 7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am stuck with an issue when pulling the data from SQL through an ODBC connection. I am using the below code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;connect to odbc (&amp;amp;connectA);&lt;BR /&gt;create table test as &lt;BR /&gt;select * from&lt;BR /&gt;connection to odbc&lt;BR /&gt;(select * from [DB - Production].pri.test) ;&lt;BR /&gt;disconnect from odbc; &lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;When I run the code it gives me the above error. When I investigated it there is a column in SQL that SAS doesn't like which is 'ABCDE' in (time(0), null) format. The rest of the columns are coming along fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I should I do to pull this column along with others without erroring?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 09:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251062#M268757</guid>
      <dc:creator>KiranMaddi</dc:creator>
      <dc:date>2016-02-19T09:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: CLI cursor fetch error: [Microsoft][SQL Server Native Client 11.0]Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251076#M268758</link>
      <description>&lt;P&gt;I see nothing in your query&amp;nbsp;that calls for an explicit pass-thru.&lt;/P&gt;
&lt;P&gt;Use a libname connection instead. If you still got problems, IMHO is that it's easier to trouble shoot.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 11:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251076#M268758</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-19T11:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: CLI cursor fetch error: [Microsoft][SQL Server Native Client 11.0]Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251095#M268759</link>
      <description>Hi LinusH &lt;BR /&gt;&lt;BR /&gt;Tried libname which imported the complete table. But unable to open it on SAS.&lt;BR /&gt;Getting the same above error.</description>
      <pubDate>Fri, 19 Feb 2016 12:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251095#M268759</guid>
      <dc:creator>KiranMaddi</dc:creator>
      <dc:date>2016-02-19T12:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: CLI cursor fetch error: [Microsoft][SQL Server Native Client 11.0]Numeric value out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251099#M268760</link>
      <description>With a libname add&lt;BR /&gt;Options msglevel = I sastrace =',,,d' SASTRACELOC = saslog nostsuffix; &lt;BR /&gt;That will tell you what's going on in  the RDBMS. &lt;BR /&gt;Also check the contents in the numerical columns, perhaps you have integers that are larger than Sas can handle. If this is the case you may need to cast the column to char before importing to Sas.</description>
      <pubDate>Fri, 19 Feb 2016 12:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-cursor-fetch-error-Microsoft-SQL-Server-Native-Client-11-0/m-p/251099#M268760</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-19T12:53:10Z</dc:date>
    </item>
  </channel>
</rss>

