<?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: OLE DB - Long Execution time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/553435#M153905</link>
    <description>&lt;P&gt;OK, that means it could be your network connection between SAS server and database that is very slow. You should talk to your SAS or IT administrator to diagnose what is the problem here.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 21:19:37 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-04-23T21:19:37Z</dc:date>
    <item>
      <title>OLE DB - Long Execution time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/552133#M153567</link>
      <description>&lt;P&gt;I used below code to pull the data in SAS (which is installed on Citrix) , it took me 2 minutes to get the result back. When I tested this query in MS SQL manager, it only used one sec. If I write a more complex query, it will take forever to run. Can anyone let me know how to fix this?&lt;/P&gt;&lt;P&gt;Proc sql;&lt;BR /&gt;connect to oledb as test ( datasource=XXXX provider=MSDASQL.1);&lt;BR /&gt;CREATE TABLE TEMP AS&lt;/P&gt;&lt;P&gt;select * from connection to test (select ID_Number Start_Date from Daily_Table&lt;BR /&gt;where Start_Date between '2019-02-01' and '2019-02-28')&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Table WORK.TEMP created, with 3547 rows and 2 columns.&lt;/P&gt;&lt;P&gt;21 quit;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 2:19.78&lt;BR /&gt;cpu time 0.40 seconds&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 20:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/552133#M153567</guid>
      <dc:creator>yue001</dc:creator>
      <dc:date>2019-04-23T20:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: OLE DB - Long Execution time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/552593#M153610</link>
      <description>&lt;P&gt;Is it exactly the same query that runs in less than a second?&lt;/P&gt;
&lt;P&gt;Can you validate with the MS SQL DBAs that the query and environment are the same?&lt;/P&gt;
&lt;P&gt;Could the citrix network layer be responsible? Can you download other data at a normal speed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 04:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/552593#M153610</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-04-20T04:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: OLE DB - Long Execution time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/552608#M153612</link>
      <description>&lt;P&gt;Run your query like this as a test. If it performs a lot faster it is the database - SAS network connection that is slow. If it runs in about the same time then it is the database that is taking all the time. Please report your result.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;
connect to oledb as test ( datasource=XXXX provider=MSDASQL.1);
CREATE TABLE TEMP AS

select * from connection to test (select count(*) as count from Daily_Table
where Start_Date between '2019-02-01' and '2019-02-28')
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Apr 2019 06:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/552608#M153612</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-20T06:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: OLE DB - Long Execution time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/553411#M153897</link>
      <description>Thank you SASKiwi!&lt;BR /&gt;I run the query, here is the result:&lt;BR /&gt;NOTE: Table WORK.TEMP created, with 1 rows and 1 columns.&lt;BR /&gt;&lt;BR /&gt;22 quit;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 3.09 seconds&lt;BR /&gt;cpu time 0.09 seconds&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Apr 2019 20:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/553411#M153897</guid>
      <dc:creator>yue001</dc:creator>
      <dc:date>2019-04-23T20:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: OLE DB - Long Execution time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/553435#M153905</link>
      <description>&lt;P&gt;OK, that means it could be your network connection between SAS server and database that is very slow. You should talk to your SAS or IT administrator to diagnose what is the problem here.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 21:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/OLE-DB-Long-Execution-time/m-p/553435#M153905</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-23T21:19:37Z</dc:date>
    </item>
  </channel>
</rss>

