<?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: SAS/ACCESS SNOWFLAKE LIBNAME in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985708#M379880</link>
    <description>&lt;P&gt;Bingo!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using an encrypted key and trying to pass the &lt;SPAN&gt;PRIV_KEY_FILE_PWD&amp;nbsp;parameter&lt;/SPAN&gt;.&amp;nbsp; I switched to an unencrypted key (to avoid the issue in the above article) and got it to work.&amp;nbsp; For posterity, the final libname statement using an UNENCRYPTED key was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname sf snow
    server="&amp;lt;account_name&amp;gt;.snowflakecomputing.com"
    user="&amp;lt;user_name&amp;gt;"
    database="&amp;lt;database_name&amp;gt;"
    schema="&amp;lt;schema_name&amp;gt;"
    conopts="
        authenticator=SNOWFLAKE_JWT;
        priv_key_file=&amp;lt;path_to_key&amp;gt;;
        ";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use an encrypted key, you have to follow theses steps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.snowflake.com/s/article/ODBC-connectivity-to-snowflake-fails-with-error-Marshaling-private-key-failed-when-using-Key-Pair-Authentication" target="_blank"&gt;ODBC connectivity to snowflake fails with error "Marshaling private key failed" when using Key Pair Authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2026 13:59:01 GMT</pubDate>
    <dc:creator>KAZ97</dc:creator>
    <dc:date>2026-03-31T13:59:01Z</dc:date>
    <item>
      <title>SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985506#M379858</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to access data stored on SNOWFLAKE via a SNOWFLAKE LIBNAME statement and am having problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Outside of SAS, I can access SNOWFLAKE via an OKTA connection with an OKTA username/password.&amp;nbsp; But obviously when I use that pair in the LIBNAME connection statement, I get an error that the pair does not exist (presumably because it is a OKTA username/password, not a SNOWFLAKE pair).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to connect to SNOWFLAKE directly using a RSA public/private key set up?&amp;nbsp; Are there ways SAS can connect via OKTA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 14:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985506#M379858</guid>
      <dc:creator>KAZ97</dc:creator>
      <dc:date>2026-03-27T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985516#M379859</link>
      <description>&lt;P&gt;Did you check out this question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Interface-to-Snowflake-Connection-Successful-Cannot/td-p/736178" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-Interface-to-Snowflake-Connection-Successful-Cannot/td-p/736178&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like that users problem was actually a firewall issue on their SAS server side.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 16:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985516#M379859</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-03-27T16:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985587#M379869</link>
      <description>&lt;P&gt;Thank you, that is helpful.&lt;/P&gt;&lt;P&gt;Unfortunately, I am operating in a locked down SAS Viya environment and do not have the ability to modify DSN entries.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a method to authenticate with an external browser without having to modify the DSN?&amp;nbsp; Is there a way to use private/public RSA keys?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2026 11:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985587#M379869</guid>
      <dc:creator>KAZ97</dc:creator>
      <dc:date>2026-03-28T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985588#M379870</link>
      <description>&lt;P&gt;Is your SAS Viya environment already configured and working with Snowflake? If it is then tweaking it for a different database and/or authentication method shouldn't be too difficult. If it isn't then authentication is just one of many things that will need to be configured, including Viya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What authentication method you use will most likely be dictated by what your Snowflake administrators have allowed. I suggest you consult with them if you haven't already.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2026 21:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985588#M379870</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2026-03-28T21:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985589#M379871</link>
      <description>Since SAS/ACCESS modules for relational databases make use of the native clients which have to be installed and configured on the SAS server, the SAS admins need to do this in cooperation with the DB admins. After they have done this, they can tell you which credentials to use.</description>
      <pubDate>Sun, 29 Mar 2026 11:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985589#M379871</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-03-29T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985630#M379875</link>
      <description>&lt;P&gt;Here is the closest I have gotten so far, using an encrypted RSA key pair:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;libname sf snow
&amp;nbsp; &amp;nbsp; server="&amp;lt;myaccount&amp;gt;.snowflakecomputing.com"
&amp;nbsp; &amp;nbsp; user="&amp;lt;username&amp;gt;"
&amp;nbsp; &amp;nbsp; database="&amp;lt;dbname&amp;gt;"
&amp;nbsp; &amp;nbsp; schema="&amp;lt;schemaName&amp;gt;"
&amp;nbsp; &amp;nbsp; conopts='authenticator=SNOWFLAKE_JWT;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRIV_KEY_FILE=&amp;lt;path-to-file&amp;gt;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PRIV_KEY_FILE_PWD=&amp;lt;pwd&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ';&lt;/PRE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;That throws the following error:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error finalize setting: Marshaling private key failed.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any recommendations?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Mar 2026 14:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985630#M379875</guid>
      <dc:creator>KAZ97</dc:creator>
      <dc:date>2026-03-30T14:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985655#M379877</link>
      <description>&lt;P&gt;Does this help? -&amp;nbsp;&lt;A href="https://community.snowflake.com/s/article/ODBC-connectivity-to-snowflake-fails-with-error-Marshaling-private-key-failed-when-using-Key-Pair-Authentication" target="_blank"&gt;https://community.snowflake.com/s/article/ODBC-connectivity-to-snowflake-fails-with-error-Marshaling-private-key-failed-when-using-Key-Pair-Authentication&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 21:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985655#M379877</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2026-03-30T21:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/ACCESS SNOWFLAKE LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985708#M379880</link>
      <description>&lt;P&gt;Bingo!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using an encrypted key and trying to pass the &lt;SPAN&gt;PRIV_KEY_FILE_PWD&amp;nbsp;parameter&lt;/SPAN&gt;.&amp;nbsp; I switched to an unencrypted key (to avoid the issue in the above article) and got it to work.&amp;nbsp; For posterity, the final libname statement using an UNENCRYPTED key was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname sf snow
    server="&amp;lt;account_name&amp;gt;.snowflakecomputing.com"
    user="&amp;lt;user_name&amp;gt;"
    database="&amp;lt;database_name&amp;gt;"
    schema="&amp;lt;schema_name&amp;gt;"
    conopts="
        authenticator=SNOWFLAKE_JWT;
        priv_key_file=&amp;lt;path_to_key&amp;gt;;
        ";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use an encrypted key, you have to follow theses steps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.snowflake.com/s/article/ODBC-connectivity-to-snowflake-fails-with-error-Marshaling-private-key-failed-when-using-Key-Pair-Authentication" target="_blank"&gt;ODBC connectivity to snowflake fails with error "Marshaling private key failed" when using Key Pair Authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 13:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-ACCESS-SNOWFLAKE-LIBNAME/m-p/985708#M379880</guid>
      <dc:creator>KAZ97</dc:creator>
      <dc:date>2026-03-31T13:59:01Z</dc:date>
    </item>
  </channel>
</rss>

