Saving Data to Tables

Saving Data to Tables

Tables with primary key or identity columns are editable by default.

To save data loaded from other objects to a table, specify the target table as INSERT, UPDATE, and DELETE objects.

Here is a sample for the xls.objects table:

IDTABLE_SCHEMATABLE_NAMETABLE_TYPETABLE_CODEINSERT_OBJECTUPDATE_OBJECTDELETE_OBJECT
 s02view_cashbookVIEWs02.cashbooks02.cashbooks02.cashbook
 s02usp_cashbookPROCEDUREs02.cashbooks02.cashbooks02.cashbook
 s02code_cashbookCODE<SQL>s02.cashbooks02.cashbooks02.cashbook

Here is a sample for the QueryList view:

IDTABLE_SCHEMATABLE_NAMETABLE_TYPETABLE_CODEINSERT_PROCEDUREUPDATE_PROCEDUREDELETE_PROCEDUREPROCEDURE_TYPE
 s02view_cashbookVIEWs02.cashbooks02.cashbooks02.cashbook
 s02usp_cashbookPROCEDUREs02.cashbooks02.cashbooks02.cashbook
 s02code_cashbookCODE<SQL>s02.cashbooks02.cashbooks02.cashbook

SaveToDB 8+, DBEdit, DBGate, and ODataDB create such configurations automatically if the target table can be detected.

For example, if a user has the VIEW DEFINITION permission and a view or stored procedure has the code like SELECT * FROM s02.cashbook.

Target tables must have primary key or identity columns.

Implementation Details

SaveToDB and DBEdit generate and execute INSERT, UPDATE, and DELETE commands themselves.

DBGate uses INSERT, UPDATE, and DELETE commands on the server-side according to POST, PUT, and DELETE commands.

ODataDB creates EntitySets for tables and views and FunctionImports with the target EntitySet for stored procedures and SQL codes.