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
Amethyst | Level 16

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 4486 views
  • 0 likes
  • 3 in conversation