<?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 Re: SQL error: cursors are not supported on a table which has a clustered columnstore index in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802432#M24019</link>
    <description>&lt;P&gt;What kind of operation do you do to get this error?&lt;/P&gt;
&lt;P&gt;Submit&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;might give som more hints.&lt;/P&gt;
&lt;P&gt;Can you reproduce directly in SQL Server?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 08:18:34 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2022-03-16T08:18:34Z</dc:date>
    <item>
      <title>SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802431#M24018</link>
      <description>&lt;P&gt;We are using SAS to connect to a SQL Server database but we are getting this error for a few tables in one of the schemas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filipvdr_0-1647416729330.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69505i730B5D2EFBB65B59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Filipvdr_0-1647416729330.png" alt="Filipvdr_0-1647416729330.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found this note so I changed the libname:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/65/778.html" target="_blank"&gt;65778 - "Cursors are not supported on a...Clustered Columnstore Index" occurs when you use SAS/ACCESS® Interface to ODBC on Microsoft SQL Server&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME test SQLSVR&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cursor_type=forward_only&amp;nbsp;&amp;nbsp; Datasrc=BISQL2&amp;nbsp; SCHEMA=MW1DM_03&amp;nbsp; AUTHDOMAIN="Auth_BISQL2" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I’m still getting the same error. Am I doing something wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 07:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802431#M24018</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2022-03-16T07:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802432#M24019</link>
      <description>&lt;P&gt;What kind of operation do you do to get this error?&lt;/P&gt;
&lt;P&gt;Submit&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;might give som more hints.&lt;/P&gt;
&lt;P&gt;Can you reproduce directly in SQL Server?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802432#M24019</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-03-16T08:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802435#M24020</link>
      <description>&lt;P&gt;I register the library in SAS Eguide and then try to open the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or in code: just a simple datastep gives me the same result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;28         options msglevel=i sastrace=',,,d' sastraceloc=saslog nostsuffix;
SQLSRV: AUTOCOMMIT is NO for connection 0
29         
30         LIBNAME test SQLSVR
31         cursor_type=forward_only   Datasrc=BISQL2  SCHEMA=MW1DM_03  AUTHDOMAIN="Auth_BISQL2" ;
NOTE:  Credential obtained from SAS metadata server.
NOTE: Libref TEST was successfully assigned as follows: 
      Engine:        SQLSVR 
      Physical Name: BISQL2
32         
SQLSRV: AUTOCOMMIT is NO for connection 1
SQLSRV: AUTOCOMMIT turned ON for connection id 1
 
SQLSRV_1: Prepared: on connection 1
SELECT * FROM "MW1DM_03"."ds_validation_evolution"
 
33         data temp;
34         set test.ds_validation_evolution;
35         run;

 
SQLSRV_2: Executed: on connection 1
Prepared statement SQLSRV_1
 
ERROR: CLI open cursor error: [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Cursors are not supported on a table 
       which has a clustered columnstore index. : [SAS][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Statement(s) 
       could not be prepared.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802435#M24020</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2022-03-16T08:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802455#M24023</link>
      <description>&lt;P&gt;And I assume you get a successful query result using&lt;/P&gt;
&lt;PRE&gt;SELECT * FROM "MW1DM_03"."ds_validation_evolution"&lt;/PRE&gt;
&lt;P&gt;in SQL Server using thesa same credentials?&lt;/P&gt;
&lt;P&gt;Looks like a connection configuration problem.&lt;/P&gt;
&lt;P&gt;I would open a track with SAS tech support for assistence.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 10:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802455#M24023</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-03-16T10:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802492#M24026</link>
      <description>Yes correct in SQL server no problem to do the same query. I opened a ticket. Thanks!</description>
      <pubDate>Wed, 16 Mar 2022 14:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802492#M24026</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2022-03-16T14:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802861#M24038</link>
      <description>&lt;P&gt;Please have a look at this post that may solve your issue&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/35411122/sqlexceptionhelper-cursors-are-not-supported-on-a-table-which-has-a-clustered-c" target="_blank"&gt;https://stackoverflow.com/questions/35411122/sqlexceptionhelper-cursors-are-not-supported-on-a-table-which-has-a-clustered-c&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 20:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/802861#M24038</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-03-18T20:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/803043#M24043</link>
      <description>&lt;P&gt;So the solution would be to add "SelectMethod=cursor" to my odbc.ini file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[BISQL2]&lt;BR /&gt;Driver=/opt/sas/sashome/AccessClients/9.4/SQLServer/lib/S0sqls27.so&lt;BR /&gt;Description=BISQL2_ICT_MW&lt;BR /&gt;Address=bisql-db, 1433 &lt;BR /&gt;ConnectionRetryCount=0&lt;BR /&gt;ConnectionRetryDelay=3&lt;BR /&gt;Database=BISQL2&lt;BR /&gt;EncryptionMethod=0&lt;BR /&gt;EnableBulkLoad=1&lt;BR /&gt;EnableScrollableCursors=3&lt;BR /&gt;ValidateServerCertificate=0&lt;BR /&gt;Trusted_Connection=yes &lt;BR /&gt;AuthenticationMethod=9&lt;BR /&gt;EnableQuotedIdentifiers=1&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;SelectMethod=cursor&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 07:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/803043#M24043</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2022-03-21T07:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/803053#M24045</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Driver=/opt/sas/sashome/AccessClients/9.4/SQLServer/lib/S0sqls27.so&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Description=BISQL2_ICT_MW&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Address=bisql-db, 1433&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ConnectionRetryCount=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ConnectionRetryDelay=3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Database=BISQL2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EncryptionMethod=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EnableBulkLoad=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EnableScrollableCursors=&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ValidateServerCertificate=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Trusted_Connection=yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AuthenticationMethod=9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EnableQuotedIdentifiers=1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Changing the "EnableScrollableCursors" to 4 solved my issue. Thanks for the support!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 09:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/803053#M24045</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2022-03-21T09:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error: cursors are not supported on a table which has a clustered columnstore index</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/803070#M24046</link>
      <description>&lt;P&gt;Good to know it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 13:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SQL-error-cursors-are-not-supported-on-a-table-which-has-a/m-p/803070#M24046</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-03-21T13:27:10Z</dc:date>
    </item>
  </channel>
</rss>

