Updating Data

To update data in the database, you should first lock the blocks in the database which you are going to update. To do this, do either of the following:

The database can be updated either from a single string, a series of strings, or a file. Update data files can reside either on the client machine, or on the Essbase Server.

Sending Update Data as a Single String

To send an update as a single string, call EsbUpdate() passing the entire string as an argument. (Note that in Windows, the string must not be greater than 32 KB long). Set the Store flag to TRUE in the call to EsbUpdate() so that the database will be updated. If the Unlock flag is also set to TRUE, any locked data blocks in the database will be unlocked once the data is updated, to allow other users to update those blocks.

Sending Update Data as a Series of Strings

To send an update as a series of strings, first call EsbBeginUpdate(), then call EsbSendString() repeatedly to send all the data (note that in Windows, each individual data string must not be greater than 32 KB long). Finally, terminate the update by calling EsbEndUpdate(). Set the Store flag to TRUE in the call to EsbUpdate() so that the database will be updated. If the Unlock flag is also set to TRUE, any locked data blocks in the database will be unlocked once the data is updated.

Sending Update Data as a File

To send an update as a file, use the EsbUpdateFile() function, passing the data file name. Set the Store flag to TRUE in the call to EsbUpdate() so that the database will be updated. If the Unlock flag is also set to TRUE, any locked data blocks in the database will be unlocked once the data is updated.