<?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 SAS/ACCESS Explicit Pass Through Connection Options in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Explicit-Pass-Through-Connection-Options/m-p/277001#M7828</link>
    <description>&lt;P&gt;I'm running an explicit pass-through query against a MS SQL Server database from SAS 9.4 on Linux, and getting intermittent connection errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ERROR: CLI error trying to establish connection: [SAS][ODBC 20101 driver]252 : [SAS][ODBC 
       20101 driver]1243&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When this happens I can resubmit the code immediately, and it runs fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect something is timing out in the handshake between SAS and SQL server, so I want to extend the SQL Server connection timeout limit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My usual CONNECT statement uses an AuthDomain to keep userid / password out of the code. It looks like:&lt;/P&gt;
&lt;PRE&gt;Connect to sqlsvr as MyDB (datasrc=MyDB AUTHDOMAIN="MyDomain");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like I can add the timeout limit by passing the full connection string:&lt;/P&gt;
&lt;PRE&gt;  Connect to sqlsvr as MyDB (required="dsn=MyDB; uid=me; password=mypassword; Connect Timeout=30");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I don't want to put the user name and password into my code.&amp;nbsp; Is there any way I can add the Connect Timeout option to my connection string while at the same time using the authdomain to pass the userid and password?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2016 17:42:12 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2016-06-13T17:42:12Z</dc:date>
    <item>
      <title>SAS/ACCESS Explicit Pass Through Connection Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Explicit-Pass-Through-Connection-Options/m-p/277001#M7828</link>
      <description>&lt;P&gt;I'm running an explicit pass-through query against a MS SQL Server database from SAS 9.4 on Linux, and getting intermittent connection errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ERROR: CLI error trying to establish connection: [SAS][ODBC 20101 driver]252 : [SAS][ODBC 
       20101 driver]1243&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When this happens I can resubmit the code immediately, and it runs fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect something is timing out in the handshake between SAS and SQL server, so I want to extend the SQL Server connection timeout limit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My usual CONNECT statement uses an AuthDomain to keep userid / password out of the code. It looks like:&lt;/P&gt;
&lt;PRE&gt;Connect to sqlsvr as MyDB (datasrc=MyDB AUTHDOMAIN="MyDomain");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like I can add the timeout limit by passing the full connection string:&lt;/P&gt;
&lt;PRE&gt;  Connect to sqlsvr as MyDB (required="dsn=MyDB; uid=me; password=mypassword; Connect Timeout=30");&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I don't want to put the user name and password into my code.&amp;nbsp; Is there any way I can add the Connect Timeout option to my connection string while at the same time using the authdomain to pass the userid and password?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 17:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Explicit-Pass-Through-Connection-Options/m-p/277001#M7828</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2016-06-13T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS Explicit Pass Through Connection Options</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Explicit-Pass-Through-Connection-Options/m-p/282919#M8069</link>
      <description>&lt;P&gt;Hi Quentin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've noticed that I got the "CLI error" when the file I was trying to access was already open in another process, and so needed to be closed first before I tried to access it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 11:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-ACCESS-Explicit-Pass-Through-Connection-Options/m-p/282919#M8069</guid>
      <dc:creator>JohnSAScom</dc:creator>
      <dc:date>2016-07-08T11:58:31Z</dc:date>
    </item>
  </channel>
</rss>

