Quantcast
Channel: SCN: Message List - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all articles
Browse latest Browse all 3678

Re: ASE database user for read-only access

$
0
0

Hi Bret.

 

What I'm trying to do is this Oracle code in sybase:

 

CREATE USER new_user IDENTIFIED BY password

CREATE ROLE new_readonly_role

GRANT select ON database.owner.table TO new_readonly_role

GRANT new_readonly_role TO new_user

 

I try to do this in sybase but when I execute GRANT the database prompts an error:

 

grant select on table to new_readonly_role returns -> "You may only GRANT or REVOKE permission on objects in the current database. If I use my_database the error is "No such user/role ___ exists (but the role exists).

If I try to create again the new_readonly_role in my_database the error is "You must be in the master database to run CREATE ROLE command".

 

Best regards.


Viewing all articles
Browse latest Browse all 3678

Trending Articles