DatabaseLink`
DatabaseLink`
SQLTablePrivileges
SQLTablePrivileges[conn]
returns a table of access rights about the tables in an SQL connection.
SQLTablePrivileges[conn,table]
returns access rights for table.
Details and Options
- To use SQLTablePrivileges, you first need to load DatabaseLink using Needs["DatabaseLink`"].
- The following options can be given:
-
Examples
Basic Examples (1)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0chdftdfhlwt2h2rxag0opg-fsmev
If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the DatabaseLink`DatabaseExamples` package, as described in Using the Example Databases.
In[2]:=2

✖
https://wolfram.com/xid/0chdftdfhlwt2h2rxag0opg-lsnzs3
Fetch privileges for all tables available on this connection:
In[3]:=3

✖
https://wolfram.com/xid/0chdftdfhlwt2h2rxag0opg-qw5t8g

Fetch privileges for a single table:
In[4]:=4

✖
https://wolfram.com/xid/0chdftdfhlwt2h2rxag0opg-unoyqt

In[5]:=5

✖
https://wolfram.com/xid/0chdftdfhlwt2h2rxag0opg-lf0