LIST CONNECTIONS Command

Example   See Also

Continuously displays information about the named connections in the current database.

Syntax

LIST CONNECTIONS
  [TO PRINTER [PROMPT] | TO FILE FileName]
  [NOCONSOLE]

Arguments

TO PRINTER [PROMPT]

Directs output from LIST CONNECTIONS to a printer.

In Visual FoxPro, you can include the optional PROMPT clause to display a Print dialog box before printing starts. Place PROMPT immediately after TO PRINTER.

TO FILE FileName

Directs output from LIST CONNECTIONS to the file specified with FileName. If the file already exists and SET SAFETY is ON, Visual FoxPro displays a prompt asking if you want to overwrite the file.

NOCONSOLE

Suppresses output to the main Visual FoxPro window or to the active user-defined window.

Remarks

The information displayed includes the names of named connections, datasources, and connection strings in the current database. Use DBGETPROP( ) to return additional information about connections in the current database.