<?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 String to SQL Server Not Working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connection-String-to-SQL-Server-Not-Working/m-p/376046#M90200</link>
    <description>&lt;P&gt;You are correct it seems including the encoded password does not work in the connection string. I had to do a manual work around that picks up the password from a file while supressing the log when assigning the librefs.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 15:03:32 GMT</pubDate>
    <dc:creator>milts</dc:creator>
    <dc:date>2017-07-14T15:03:32Z</dc:date>
    <item>
      <title>Connection String to SQL Server Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connection-String-to-SQL-Server-Not-Working/m-p/373503#M89359</link>
      <description>&lt;P&gt;I'm having trouble connecting to a SQL Server 2016 DB when the string password is encoded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works.&lt;/P&gt;&lt;P&gt;libname test2 odbc noprompt="server=SRV;Driver=SQL Server;uid=sa;pwd=mypwd;database=DB";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this doesn't work.&lt;/P&gt;&lt;P&gt;libname test2 odbc noprompt="server=SRV;Driver=SQL Server;uid=sa;pwd='{SASENC}12345F';database=DB";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 03:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connection-String-to-SQL-Server-Not-Working/m-p/373503#M89359</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-07-06T03:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Connection String to SQL Server Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connection-String-to-SQL-Server-Not-Working/m-p/373505#M89360</link>
      <description>&lt;P&gt;What's your error message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's an old SAS Note that says you can't use encrypted passwords in connection strings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/31/602.html" target="_blank"&gt;http://support.sas.com/kb/31/602.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't know if it is still the case or not. Maybe you could try moving the user and password outside of NOPROMPT in separate parameters&amp;nbsp;as encryption in the PASSWORD parameter&amp;nbsp;is allowed.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 04:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connection-String-to-SQL-Server-Not-Working/m-p/373505#M89360</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-07-06T04:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connection String to SQL Server Not Working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connection-String-to-SQL-Server-Not-Working/m-p/376046#M90200</link>
      <description>&lt;P&gt;You are correct it seems including the encoded password does not work in the connection string. I had to do a manual work around that picks up the password from a file while supressing the log when assigning the librefs.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 15:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connection-String-to-SQL-Server-Not-Working/m-p/376046#M90200</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-07-14T15:03:32Z</dc:date>
    </item>
  </channel>
</rss>

