Skip to content

Save

Saves changes made to the data table to the database.

1
myDataTable.Save():DataTable

Returns

The current DataTable instance.

Remarks

Until the DataTable.Save method is called, all changes to the data table are stored in memory. The Save method flushes all changes to the database.

Scan all rows and update the name of the groups:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
var table = $Database.Get({
    Parameters : {
        TargetSchema : 'HR',
        TargetTable : 'Groups'
    }
});

table.Each(function () {
    this.Name = 'MyAdmin';
});

table.Save();

See Also