Link to home
Start Free TrialLog in
Avatar of Ganapathi
GanapathiFlag for India

asked on

See the Access level(Read, Write, etc.) in Sybase databases

I would like to view the level of access that the Users have in the Sybase database.

I need a query to check for it.

If I pass the user id as 'ganapas', i would like to view the access levels that the user 'ganapas' has in the database.

Access levels : Read, Write, No Access, Locked, etc.

I am sure this is an easier one with the sysusers and logins tables. But held up with other stuffs.

Would be great if someone  helps me with building the Query.

TIA.
Avatar of alpmoon
alpmoon
Flag of Australia image

Can you use sp_helprotect for that purpose? sp_helprotect shows all objects a user has when it is used with user parameter like:

sp_helprotect user_x
Avatar of Ganapathi

ASKER

Thanks. But it takes time to run. I have 4000+ tables and 1200+ Stored procedures in the database.
ASKER CERTIFIED SOLUTION
Avatar of alpmoon
alpmoon
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the option. I learnt something.