<?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: Access to BigQuery | Disconnect when execute query in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919480#M28151</link>
    <description>&lt;P&gt;You can use the same parameters that you use in your CONNECT statement in a LIBNAME statement:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n1bqkrtqhw4344n13kmsimffinu3.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n1bqkrtqhw4344n13kmsimffinu3.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Not sure if you need to use the three level notation in your SQL since project and schema are mentioned in the connection parameter.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 15:31:55 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2024-03-08T15:31:55Z</dc:date>
    <item>
      <title>Access to BigQuery | Disconnect when execute query</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919418#M28140</link>
      <description>&lt;P&gt;Hi Folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're recently installed a SAS Access to BigQuery on our Linux 9.4 M7 environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When we tried to execute the query below, the query executes (we verfied it on GCP) but instead of showing the results, the following error occurs. Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql ;&lt;BR /&gt;connect to bigquery as perm (project='xx-yyyy-mm' credfile='/aaaa/bq/access.json' &lt;BR /&gt;schema='bb-yyyy-aa');&lt;BR /&gt;Create table teste as&lt;BR /&gt;select * from connection to perm&lt;BR /&gt;(select * from bb-yyyy-aa.schema.table_name );&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Erro.PNG" style="width: 397px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94477i0A6E740C8ABC75E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Erro.PNG" alt="Erro.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 10:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919418#M28140</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2024-03-08T10:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BigQuery | Disconnect when execute query</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919442#M28147</link>
      <description>&lt;P&gt;And nothing more in the SAS log?&lt;/P&gt;
&lt;P&gt;Try to query using a libname instead, and adding these options &amp;lt;might&amp;gt; give you more information in the log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sastrace=',,,d' sastraceloc=saslog msglevel=i;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2024 12:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919442#M28147</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-03-08T12:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BigQuery | Disconnect when execute query</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919444#M28149</link>
      <description>&lt;P&gt;So, I tríed to use libname instead of SQL pass-through but it’s not working for the structure inside GCP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The user has access to a project id and once on it, he connect to other project id, schema and table. In SQL pass-through I can configure this type of access, defining the project &amp;nbsp;id and schema on the connection and then in the FROM I can use project_id2.schema2.table.&lt;/P&gt;
&lt;P&gt;There is any to use LIBNAME if I had this structure en GCP?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 13:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919444#M28149</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2024-03-08T13:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BigQuery | Disconnect when execute query</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919480#M28151</link>
      <description>&lt;P&gt;You can use the same parameters that you use in your CONNECT statement in a LIBNAME statement:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n1bqkrtqhw4344n13kmsimffinu3.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n1bqkrtqhw4344n13kmsimffinu3.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Not sure if you need to use the three level notation in your SQL since project and schema are mentioned in the connection parameter.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 15:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919480#M28151</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2024-03-08T15:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BigQuery | Disconnect when execute query</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919484#M28153</link>
      <description>Thanks, it’a because I access a project that it’s empty, it’s only for the connection (for billing purposes). After I connect in this first project, I need to access the table that is located in other project and schema.&lt;BR /&gt;&lt;BR /&gt;Do you know which Google permission the services account needs to query from SAS ? The user will not save anything in Google, only access the data.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2024 15:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919484#M28153</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2024-03-08T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BigQuery | Disconnect when execute query</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919500#M28155</link>
      <description>I executed againg the query using the sastrace option. Follows the results:&lt;BR /&gt;&lt;BR /&gt;024-03-08T14:06:39,961 INFO  [00000009] :user - 27         options sastrace=',,,d' sastraceloc=saslog msglevel=i;&lt;BR /&gt;2024-03-08T14:06:39,961 INFO  [00000009] : user - 28&lt;BR /&gt;2024-03-08T14:06:39,967 INFO  [00000015] : user - 29         proc sql ;&lt;BR /&gt;2024-03-08T14:06:39,967 INFO  [00000015] : user - 30          connect to bigquery as perm (project='aa-tedm-dtm' credfile='/files/access/bq/tedm-dtm.json'&lt;BR /&gt;2024-03-08T14:06:39,967 INFO  [00000015] : user - 31          schema='aa-base-prd');&lt;BR /&gt;2024-03-08T14:06:41,765 INFO  [00000015] : user -&lt;BR /&gt;2024-03-08T14:06:41,766 INFO  [00000015] : user - 32          Create table teste as&lt;BR /&gt;2024-03-08T14:06:41,766 INFO  [00000015] : user - 33            select * from connection to perm&lt;BR /&gt;2024-03-08T14:06:41,766 INFO  [00000015] : user - 34            (select * from aa-base-prd.analytics.table_2 );&lt;BR /&gt;2024-03-08T14:06:42,412 INFO  [00000015] : user -   0 1709917602 no_name 0 SQL (2)&lt;BR /&gt;2024-03-08T14:06:42,412 INFO  [00000015] : user - SASGBQ_1: Prepared: on connection 0 1 1709917602 no_name 0 SQL (2)&lt;BR /&gt;2024-03-08T14:06:42,413 INFO  [00000015] : user - select * from aa-base-prd.analytics.table_2 2 1709917602 no_name 0 SQL (2)&lt;BR /&gt;2024-03-08T14:06:42,413 INFO  [00000015] : user -   3 1709917602 no_name 0 SQL (2)&lt;BR /&gt;2024-03-08T14:06:43,951 INFO  [00000015] : user -   4 1709917603 no_name 0 SQL (2)&lt;BR /&gt;2024-03-08T14:06:43,951 INFO  [00000015] : user - SASGBQ_2: Executed: on connection 0 5 1709917603 no_name 0 SQL (2)&lt;BR /&gt;2024-03-08T14:06:43,951 INFO  [00000015] : user - Prepared statement SASGBQ_1 6 1709917603 no_name 0 SQL (2)&lt;BR /&gt;2024-03-08T14:06:43,951 INFO  [00000015] : user -   7 1709917603 no_name 0 SQL (2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2024 17:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Access-to-BigQuery-Disconnect-when-execute-query/m-p/919500#M28155</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2024-03-08T17:30:48Z</dc:date>
    </item>
  </channel>
</rss>

