on 12-02-2014 5:47 PM
In IQ 16, you can do this with privileges.
Add the user 'jose'
Grant the privilege CREATE ANY TABLE to 'jose'
> isql -S localhost:2638 -Udba -Psql
1> grant connect to jose identified by password
2> go
1> grant connect to cesar identified by password
2> go
1> grant create any table to jose
2> go
1> quit
> isql -Slocalhost:2638 -Ujose -Ppassword
1> create table cesar.test_table ( a1 int )
2> go
Of course, 'jose' won't be able to drop the table:
1> drop table cesar.test_table
2> go
Msg 262, Level 16, State 0:
SQL Anywhere Error -121: Permission denied: you do not have permission to use the "DROP TABLE" statement
To do that you need to grant the DROP ANY TABLE privilege.
To see a full list of privileges, look here:
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, you can either create tables or not. We cannot restrict it to just the ability to create a table for a single user. Jose can create tables, that we allow. We have no way to say that Jose can only create tables for Cesar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.