Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SQL Permission for SYS.COLUMNS

$
0
0

I am trying to get a sql user be able to select from the SYS.COLUMNS table from an unprivileged user.

When I do this, I get :

SAP DBTech JDBC: [258]: insufficient privilege: Not authorized

 

I have checked the different sql permissions available and tried to add the most relevant :  a sql privileges named "EXECUTE_COLUMN_SEARCH" (SYS) on this user. It did not work.

My SYSTEM user can get the result from the SYS.COLUMNS table.

 

Does someone know what permission I need to add to my unprivileged user for SYS.COLUMNS  ?  also Source please.

 

 

Or a working alternative : I am trying to convert this from MSSQL to HANA : select * from syscolumns where name = ''COLUMN'' and id = OBJECT_ID(''TABLE'')

This query check if a specific field exists in a table before trying to use it.

If there is another way to check it without passing through the SYS.COLUMNS, it would work too. Please note that I want all the columns, not just  M_CS_Columns (of column type tables).


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>