BookmarkSubscribeRSS Feed
Smitha9
Fluorite | Level 6

Hi,

I have a error when I run the code:

ERROR: CLI describe error: [Microsoft][ODBC SQL Server Driver][SQL Server]The SELECT permission was
denied on the column 'demo' of the object 'personname', database 'Warehouse', schema 'dbo'.

 

the code example:


libname SIT odbc noprompt =
"server=prd; DRIVER=SQL Server; Trusted Connection=yes"
DATABASE = Warehouse schema = dbo;
PROC SQL;
CREATE TABLE SITdat AS
SELECT DISTINCT
DurableKey AS personname
, testID
, testdate AS run_fate
FROM SIT.personname;

QUIT;

2 REPLIES 2
yabwon
Onyx | Level 15

Maybe this will help:

https://support.microsoft.com/en-us/topic/-2147217911-microsoft-odbc-sql-server-driver-sql-server-se...

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



SASKiwi
PROC Star

You need to talk to your SQL Server database administrator to be granted full select (read) permission on this table, although normally you would be granted read permission at the database or schema level. It looks like this table contains at least one column you don't have permission to read.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 4097 views
  • 0 likes
  • 3 in conversation