SQL Make Database Changes - SQL Based Methods (ESQL)
Name |
Type |
Description |
Function |
Function for creating a new SQL Database. Note: This is for creating new SQL DATABASES - not database tables! |
|
Function |
Creates an SQL Table at the SQL back-end. |
|
Function |
Deletes the data cache file and .int file, then drops the passed data table name. |
|
Function |
To rename an existing table name |
|
Function |
Deletes the data cache file and .int file, then drops the passed SQL data view. |
|
Function |
To add a new column to a table. |
|
Function |
To change the length or type of an existing column. |
|
Function |
To remove an existing table column/field. |
|
Function |
To rename an existing column/field. |
|
Function |
To set a default value for a column. |
|
Function |
To set if a column accepts NULL values or not. |
|
Function |
To convert an SQL table to Embedded (a DataFlex .dat file) |
|
Function |
To populate all existing table rows for a column. |
Several of the above functions have their counterpart as "ApiXXX" functions - see API Based Methods.
The difference is that the "SqlXXX" functions above doesn't use Structure_Start and Structure_End commands to make changes to the SQL server. Instead they use ESQL (Embedded SQL). This can drastically reduce the time it takes to perform some tasks as the Structure_Start/End usually exports all table data, drops the table and loads the table again with data. Something that can be very time consuming if there is a lot of data. These functions are available to SQL based tables only.
Note: If you don't find what you are looking for here, look at the API Make Database Changes sections for more functions.