Difference between revisions of "SET DATADIR"

From Lianjapedia
Jump to: navigation, search
 
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Specify a directory in which files will be searched for and stored
+
Specify a directory in which data files will be searched for and stored
 
+
  
 
==Syntax==
 
==Syntax==
 
SET DATADIR TO [<path-name>]
 
SET DATADIR TO [<path-name>]
 
  
 
==See Also==
 
==See Also==
[[CREATE DATABASE]], [[DB_DATADIR]], [[DEFAULT()]], [[OPEN DATABASE]], [[SET DEFAULT]], [[SET DIRECTORY]], [[SET PATH]], [[SET VIEW]], [[USE]]  
+
[[APPDIR()]], [[Command Line Switches]], [[CREATE DATABASE]], [[DATADIR()]], [[DEFAULT()]], [[:Category:Deployment|Deployment]], [[Directories Settings]], [[Lianja|Lianja System Object]],[[LIBDIR()]], [[OPEN DATABASE]], [[SET APPDIR]], [[SET DEFAULT]], [[SET DIRECTORY]], [[SET LIBDIR]], [[SET PATH]], [[USE]]  
 
+
  
 
==Description==
 
==Description==
The SET DATADIR command is used to specify a directory where database tables, memos, indexes, and dictionary  files are located.  When a table is being opened this directory is searched first before the current directory and the file search path to locate the table and its associated files.  This allows the database tables to be relocated to a different file system without the need to change an existing application.
+
The Data directory location is set automatically. When a database is open it is the directory for the current database, otherwise it is the data sub-directory of the lianja root directory / deployment location.
 +
 
 +
The SET DATADIR command can be used to specify a directory where database tables, memos, indexes, and dictionary  files are located.  When a table is being opened this directory is searched first before the current directory and the file search path to locate the table and its associated files.  This allows the database tables to be relocated to a different file system without the need to change an existing application.
  
 
The SET DATADIR TO command without a <path-name> removes the previously set directory from the search path.  
 
The SET DATADIR TO command without a <path-name> removes the previously set directory from the search path.  
 
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
set datadir to /usr/app1/data</code>
+
set datadir to C:\lianja\data\</code>
 
+
 
+
==Products==
+
Recital Server, Recital
+
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|DATADIR]]
 
[[Category:Set_Commands|DATADIR]]
[[Category:Environment]]
+
[[Category:Lianja VFP Extensions]]
[[Category:Environment Set Commands]]
+
[[Category:VFP Command Extensions]]

Latest revision as of 12:49, 13 March 2018

Purpose

Specify a directory in which data files will be searched for and stored

Syntax

SET DATADIR TO [<path-name>]

See Also

APPDIR(), Command Line Switches, CREATE DATABASE, DATADIR(), DEFAULT(), Deployment, Directories Settings, Lianja System Object,LIBDIR(), OPEN DATABASE, SET APPDIR, SET DEFAULT, SET DIRECTORY, SET LIBDIR, SET PATH, USE

Description

The Data directory location is set automatically. When a database is open it is the directory for the current database, otherwise it is the data sub-directory of the lianja root directory / deployment location.

The SET DATADIR command can be used to specify a directory where database tables, memos, indexes, and dictionary files are located. When a table is being opened this directory is searched first before the current directory and the file search path to locate the table and its associated files. This allows the database tables to be relocated to a different file system without the need to change an existing application.

The SET DATADIR TO command without a <path-name> removes the previously set directory from the search path.

Example

set datadir to C:\lianja\data\