<?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: libname works in sas EG but not in SAS VA 7.1 in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/libname-works-in-sas-EG-but-not-in-SAS-VA-7-1/m-p/228694#M2642</link>
    <description>&lt;P&gt;Your EG SQL Server database connection is using your own userid to login. As this is successful you must be set up as a user in the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS VA Stored Process, runs under a SAS service account: svc_sassrv. This is the userid being used to connect to SQL Server via Trusted Connection=yes and it is most likely not set up as a user in SQL Server. Confirm this with your DBA. What happens if you don't use Trusted Connection=yes &amp;nbsp;and substitute your own userid and password instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LIBNAME WWTest ODBC NOPROMPT="server=CLNTDWPRD03;driver=sql server;Database=clientdb;" SCHEMA=dbo USER=myid PASSWORD="{sas002}&lt;/SPAN&gt;&lt;EM&gt;alphanumeric combination&lt;/EM&gt;&lt;SPAN&gt;" ;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2015 18:41:22 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-10-06T18:41:22Z</dc:date>
    <item>
      <title>libname works in sas EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/libname-works-in-sas-EG-but-not-in-SAS-VA-7-1/m-p/228678#M2641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The original libname as I see in SAS MC is below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME WWTest ODBC NOPROMPT="server=CLNTDWPRD03;driver=sql server;Trusted Connection=yes;Database=clientdb;" SCHEMA=dbo USER=myid PASSWORD="{sas002}&lt;EM&gt;alphanumeric combination&lt;/EM&gt;" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually take out the user and password strings and use the rest of the libname in the stp code -&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LIBNAME WWTest ODBC NOPROMPT="server=CLNTDWPRD03;driver=sql server;Trusted Connection=yes;Database=clientdb;" SCHEMA=dbo;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run the stored process in SAS EG, then I am not getting any error-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;21 LIBNAME WWTest ODBC NOPROMPT=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX SCHEMA=dbo ;&lt;BR /&gt;NOTE: Libref WWTEST was successfully assigned as follows:&lt;BR /&gt;Engine: ODBC&lt;BR /&gt;Physical Name:&lt;BR /&gt;22 PROC SQL;&lt;BR /&gt;23 CREATE TABLE WORK.QUERY_FOR_VW_DASH_DISPLAY AS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stored Process Error in SAS VA 7.1&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;21         LIBNAME WWTest ODBC  NOPROMPT=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  SCHEMA=dbo  ;
&lt;STRONG&gt;&lt;FONT color="red"&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'HMI-INC\svc_sassrv'. : [Microsoft][ODBC SQL Server Driver]Invalid 
       connection string attribute
ERROR: Error in the LIBNAME statement&lt;BR /&gt;
&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Oct 2015 17:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/libname-works-in-sas-EG-but-not-in-SAS-VA-7-1/m-p/228678#M2641</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2015-10-06T17:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: libname works in sas EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/libname-works-in-sas-EG-but-not-in-SAS-VA-7-1/m-p/228694#M2642</link>
      <description>&lt;P&gt;Your EG SQL Server database connection is using your own userid to login. As this is successful you must be set up as a user in the database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS VA Stored Process, runs under a SAS service account: svc_sassrv. This is the userid being used to connect to SQL Server via Trusted Connection=yes and it is most likely not set up as a user in SQL Server. Confirm this with your DBA. What happens if you don't use Trusted Connection=yes &amp;nbsp;and substitute your own userid and password instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;LIBNAME WWTest ODBC NOPROMPT="server=CLNTDWPRD03;driver=sql server;Database=clientdb;" SCHEMA=dbo USER=myid PASSWORD="{sas002}&lt;/SPAN&gt;&lt;EM&gt;alphanumeric combination&lt;/EM&gt;&lt;SPAN&gt;" ;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 18:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/libname-works-in-sas-EG-but-not-in-SAS-VA-7-1/m-p/228694#M2642</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-10-06T18:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: libname works in sas EG but not in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/libname-works-in-sas-EG-but-not-in-SAS-VA-7-1/m-p/228709#M2643</link>
      <description>&lt;P&gt;this is when i remove the trusted connection = yes phrase and just use my userid and encrypted password.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS VA session -&lt;/P&gt;
&lt;P&gt;21 LIBNAME WWTest ODBC NOPROMPT=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX SCHEMA=dbo USER=myuserid PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ;&lt;BR /&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'HMI-INC\svc_sassrv'.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS EG sesion-&lt;/P&gt;
&lt;P&gt;21 LIBNAME WWTest ODBC NOPROMPT=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX SCHEMA=dbo USER=myuserid PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ;&lt;BR /&gt;NOTE: Libref WWTEST was successfully assigned as follows: &lt;BR /&gt; Engine: ODBC &lt;BR /&gt; Physical Name: &lt;BR /&gt;22 PROC SQL;&lt;/P&gt;
&lt;P&gt;23&amp;nbsp;CREATE TABLE WORK.QUERY_FOR_VW_DASH_DISPLAY AS&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;update 20150710 : my db admin sent me a note saying that&amp;nbsp;svc_sassrv is added to a db user group that has access to ms sql server db. But I still see the same error in SAS VA 7.1.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;saspert&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 18:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/libname-works-in-sas-EG-but-not-in-SAS-VA-7-1/m-p/228709#M2643</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2015-10-07T18:25:52Z</dc:date>
    </item>
  </channel>
</rss>

