<?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: Connection pooling to external database  in sas 9.4 in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967106#M29975</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;. for the quick response.&lt;BR /&gt;I have a question about SAS/SHARE. I have the impression that it can provide shared connection to SAS Datasets. Does it work with RDBMS say for example Oracle, MS SQL Server etc.?&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2025 13:10:39 GMT</pubDate>
    <dc:creator>thesasuser</dc:creator>
    <dc:date>2025-05-21T13:10:39Z</dc:date>
    <item>
      <title>Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967032#M29969</link>
      <description>&lt;P&gt;I have a scenario where while connecting to an external databases (for example) every user would create a connection to the database using his own libname statement. This create one connection for every user.&lt;BR /&gt;I was wondering if&lt;A title="Connection Pooling" href="https://en.wikipedia.org/wiki/Connection_pool" target="_blank" rel="noopener"&gt; Connection Pooling&lt;/A&gt;&amp;nbsp; is a feasible option.&lt;BR /&gt;I was wondering if we could have a pool of database connections created may be in the metadata server. Whenever a user process needs to connect to an database, it takes a connection form the pool and then it is returned after use.&lt;BR /&gt;No new connection for every user.&lt;BR /&gt;Wondering if creating a library in the metadata server server serves this purpose?&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 14:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967032#M29969</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2025-05-20T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967056#M29971</link>
      <description>&lt;P&gt;No idea.&amp;nbsp; Did you try it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have SAS/Share licensed? Perhaps you could setup a SAS/Share server to make the database connection and share the library to other SAS sessions.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 20:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967056#M29971</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-20T20:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967059#M29972</link>
      <description>&lt;P&gt;The way most users interact with SAS 9.4 is to start a SAS Workspace Server session dedicated to each user. You can't pool database connections across each user's sessions. To be able to pool external database connections between users you would need a shared SAS server that runs continuously and as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp; has mentioned SAS/SHARE is probably your only option, plus use the options &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n166tqlopg9p0bn1okz4ilmde7mp.htm" target="_blank" rel="noopener"&gt;CONNECTION = GLOBAL&lt;/A&gt; on your LIBNAME statements. That obviously means you would need to both install and license it. IMHO that seems like overkill just to support connection pooling.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 21:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967059#M29972</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-05-20T21:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967087#M29973</link>
      <description>&lt;P&gt;My first question would be: Why? What problem are you trying to solve?&lt;BR /&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;already explained SAS sessions are user specific and so are the connection to the DB.&lt;/P&gt;
&lt;P&gt;connection=global can certainly help that at least on user level a connection gets reused and not for every query a new one gets created. And for this reason pre-defining the library in SAS metadata with connection=global set would help that users use a libname definition with this option set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The one scenario where multiple users could use the same connection would be stored processes that use pooled workspaces. I believe that if these workspace instances get started with a pre-assigned library that got connection=global then subsequent requests by any user would use the same db connection. Not 100% sure though and certainly something you would have to test - plus it only applies to use case for stp.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... and about SAS/Share: imho rather outdated technology. I wouldn't go down this path. And afaik SAS/Share no longer exists under SAS Viya.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 09:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967087#M29973</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-05-21T09:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967106#M29975</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;. for the quick response.&lt;BR /&gt;I have a question about SAS/SHARE. I have the impression that it can provide shared connection to SAS Datasets. Does it work with RDBMS say for example Oracle, MS SQL Server etc.?&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 13:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967106#M29975</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2025-05-21T13:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967109#M29976</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39715"&gt;@thesasuser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/SHARE was made specifically for SAS data sets! Your RDBMS has concurrent read/write feature out of&amp;nbsp; the box, and you don't need any external tool/software for that. All you need to grant your users the Read, Write, Update, Delete&amp;nbsp; privileges.&amp;nbsp; Discuss this with your Database Admin, he/she should know how to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 13:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967109#M29976</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2025-05-21T13:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967168#M29979</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39715"&gt;@thesasuser&lt;/a&gt;&amp;nbsp;- Why the need to share external database connections as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;has already asked? Personally I've never encountered any recent issues with every SAS user having their own connections, especially with the high performance of modern networks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 20:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/967168#M29979</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-05-21T20:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connection pooling to external database  in sas 9.4</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/968151#M30026</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Connection pooling is something I saw in the java world.&lt;BR /&gt;Creating library definitions in the metadata server and pre-assigning would serve a similar purpose, though they are not the same.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Connection-pooling-to-external-database-in-sas-9-4/m-p/968151#M30026</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2025-06-04T13:18:25Z</dc:date>
    </item>
  </channel>
</rss>

