Creates and opens a database.

CREATE DATABASE [DatabaseName | ?]

Parameters

[ DatabaseName| ?]

Specifies the name of the database to create or opens the Create dialog box so you can specify a name for the database and the location where you want to save the database. Omitting arguments for these parameters also opens the Create dialog box.

Database files are saved with a .dbc file name extension.

NoteNote

If the SET SAFETY command is set to ON, and the database name that you specify has the same path and name as an existing database, Visual FoxPro prompts you to specify a different path or name for the database.

Expand imageRemarks

Expand imageExample

Expand imageSee Also