<?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 &amp;quot;Describe Error&amp;quot; when using Proc SQL to read unprotected columns from a table with protected columns in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/quot-Describe-Error-quot-when-using-Proc-SQL-to-read-unprotected/m-p/861754#M82553</link>
    <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure this is a simple problem but I can't seem to find an answer online. I am trying to query an SQL database that contains some protected columns (like a confidential phone number). When I use Proc SQL specifying the variables I want, none of which are protected, I get a describe error. Code and error below:&lt;/P&gt;&lt;P&gt;55 proc sql;&lt;BR /&gt;56 create table xx1 as&lt;BR /&gt;57 select userID, fname, lname,&amp;nbsp;&lt;BR /&gt;57 ! email1, mailaddr&lt;BR /&gt;58 from OPSDB.useraccount;&lt;BR /&gt;ERROR: Describe error: IColumnsInfo::GetColumnInfo failed. : Deferred prepare could not be&lt;BR /&gt;completed.: The SELECT permission was denied on the column 'PHONENUM' of the object&lt;BR /&gt;'USERACCOUNT', database 'USERDB', schema 'dbo'.&lt;BR /&gt;59 quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts? Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Mar 2023 15:39:14 GMT</pubDate>
    <dc:creator>LM2022</dc:creator>
    <dc:date>2023-03-01T15:39:14Z</dc:date>
    <item>
      <title>"Describe Error" when using Proc SQL to read unprotected columns from a table with protected columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/quot-Describe-Error-quot-when-using-Proc-SQL-to-read-unprotected/m-p/861754#M82553</link>
      <description>&lt;P&gt;Good morning,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure this is a simple problem but I can't seem to find an answer online. I am trying to query an SQL database that contains some protected columns (like a confidential phone number). When I use Proc SQL specifying the variables I want, none of which are protected, I get a describe error. Code and error below:&lt;/P&gt;&lt;P&gt;55 proc sql;&lt;BR /&gt;56 create table xx1 as&lt;BR /&gt;57 select userID, fname, lname,&amp;nbsp;&lt;BR /&gt;57 ! email1, mailaddr&lt;BR /&gt;58 from OPSDB.useraccount;&lt;BR /&gt;ERROR: Describe error: IColumnsInfo::GetColumnInfo failed. : Deferred prepare could not be&lt;BR /&gt;completed.: The SELECT permission was denied on the column 'PHONENUM' of the object&lt;BR /&gt;'USERACCOUNT', database 'USERDB', schema 'dbo'.&lt;BR /&gt;59 quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts? Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 15:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/quot-Describe-Error-quot-when-using-Proc-SQL-to-read-unprotected/m-p/861754#M82553</guid>
      <dc:creator>LM2022</dc:creator>
      <dc:date>2023-03-01T15:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: "Describe Error" when using Proc SQL to read unprotected columns from a table with pro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/quot-Describe-Error-quot-when-using-Proc-SQL-to-read-unprotected/m-p/861824#M82571</link>
      <description>&lt;P&gt;Try an SQL Passthrough query to see if you get the same problem:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect using OPSDB;
create table xx1 as
select * from connection to OPSDB
(select userID, fname, lname, 
email1, mailaddr
from useraccount
);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Mar 2023 19:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/quot-Describe-Error-quot-when-using-Proc-SQL-to-read-unprotected/m-p/861824#M82571</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-01T19:05:29Z</dc:date>
    </item>
  </channel>
</rss>

