Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DISPLAY VIEWS Command

Displays information about SQL views in the current database and indicates whether the SQL views are based on local or remote tables.


DISPLAY VIEWS [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]] [NOCONSOLE]

Parameters

TO PRINTER [PROMPT]

Directs output from DISPLAY VIEWS to a printer.

You can include PROMPT to display the Print dialog box before printing starts. Place the PROMPT keyword immediately after TO PRINTER.

TO FILE FileName

Directs output from DISPLAY VIEWS 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.

ADDITIVE

Appends to the end of the named file. If you omit ADDITIVE, then the file is overwritten with the value of the expression.

NOCONSOLE

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

Use DBGETPROP( ) to return additional information about SQL views in the current database.

SQL views are created with CREATE SQL VIEW.

The following example opens the testdata database. CREATE SQL VIEW is used to create a local SQL view named myview. The View Designer is displayed, making it possible for you to specify tables and conditions for the SQL view. After you save the SQL view you create, information about the SQL views in the database is displayed.

CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'Data\testdata')
CREATE SQL VIEW myview

CLEAR
DISPLAY VIEWS
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.