Search code examples
sybase

Sybase ASE tempdb table permission issue


I know sybase supports two types of temp tables, one starts with # and can't be shared by sessions. The other one is created with tempdb.. prefix which can be shared by sessions or users.

My question is:

Are tables created in tempdb accessible to other users as well? How to control the access or how to prevent the table created by userA from being modified/dropped by userB?

I googled for a while but didn't find any information on this.

I'm using sybase at work but don't have admin access to create new user so I can't do the test.

Can someone who have experience please advise?


Solution

  • please refer to http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc32300.1570/html/sqlug/X10118.htm for details.

    i also test the behavior on sybase ase 15.7.

    the result as same as the previous link.

    Are tables created in tempdb accessible to other users as well?

    • Yes.

    How to control the access or how to prevent the table created by userA from being modified/dropped by userB?

    • There seems no method about the tempdb..xxx tables.