DatabaseLink`
DatabaseLink`

SQLTableInformation

SQLTableInformation[conn]

returns a list of information about the tables in an SQL connection.

SQLTableInformation[conn,table]

returns information about table.

Details and Options

  • To use SQLTableInformation, 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"Falsewhether to return headings with the results
    "TableType""TABLE"type of table to return

Examples

open allclose all

Basic Examples  (1)

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.

Open a connection:

Get information for a specific table:

Get information for tables that match a pattern:

Options  (2)

"ShowColumnHeadings"  (1)

"TableType"  (1)

Get information for all types of tables in a data source: