SQLTablePrivileges
This feature is not supported on the Wolfram Cloud.

SQLTablePrivileges[conn]
returns a table of access rights about the tables in an SQL connection.

SQLTablePrivileges[conn,table]
returns access rights for table.

DetailsDetails

  • To use SQLTablePrivileges, you first need to load DatabaseLink using Needs["DatabaseLink`"].
  • The following options can be given:
  • "Catalog"Nonedatabase catalog to use
    "Schema"Nonedatabase schema to use
    "ShowColumnHeadings"Nonewhether to return headings with the results

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

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 package, as described in Using the Example Databases.

Open a connection:

In[2]:=
Click for copyable input

Fetch information on all tables available on this connection:

In[3]:=
Click for copyable input
Out[3]//TableForm=

Fetch information on a single table:

In[4]:=
Click for copyable input
Out[4]//TableForm=
In[5]:=
Click for copyable input