Must be a system user. Read about system user accounts.
Supported database servers are Microsoft SQL Server and Oracle Database Servers.
Functions
Working with mass operations
Field values
The number of columns on both target columns and row columns must be the same. That means when five target columns are defined, each data row is expected to contain exactly five columns as well. The following example demonstrates acontact table insert and specified the five fields: contact ID, name, country, business, and category. Notice the data input contains rows with matching five columns. An SoMassOperationException is thrown when the number of specified columns does not match the number of data row columns.
Insert method is used, specifying the primary key column for built-in Sales and Service tables is optional, but recommended. A primary key column value must be a positive number. For both an Insert and Upsert, 0 means “please assign”.
Most tables have non-nullable fields that must be included as specified columns with default values. Use the Database Reference documentation to determine which fields are required. For a complete list, see the Tables section.
The following non-nullable columns are handled by NetServer:
- registered and updated fields
- DBI related fields in extra tables
- user-defined fields; if only those are missing from the incoming then we’ll supply them
SoMassOperationException is thrown.
Data formats
To avoid any serialization problems, or database data type conflicts, it’s recommended to encode all non-string values. NetServer uses theCultureDataFormatter class to format all non-string values and uses monikers to encode the various data types. When used, the data row columns appear as the values encapsulated in square brackets seen below. The format is ”[” moniker:value ”]”, without spaces. For more information about encoding and decoding values, see the CultureDataFormatter documentation.
Data rows and column values:
You don’t have to encode every value. Internally, NetServer does accept un-encoded values, however, DateTime-related data types are often the source of problems and it is therefore recommended to use
CultureDataFormatter.Encode(object) to format all non-string values. This, of course, assumes you are using one of our NetServer libraries.