Add multiple records to a table.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Function recadd( _ 
   ByVal tblName As String,  _ 
   ByVal src As NetricsTableRecSrc,  _ 
   ByVal doMaxWork As Boolean,  _ 
   ByVal l As NetricsLock,  _ 
   ByVal estNumRecs As Integer _ 
) As NetricsTableStats _
    Implements INetricsServerInterface.recadd
C#
public NetricsTableStats recadd(
   string tblName,
   NetricsTableRecSrc src,
   bool doMaxWork,
   NetricsLock l,
   int estNumRecs
)
C++
public:
 NetricsTableStats recadd(
   String tblName,
   NetricsTableRecSrc src,
   bool doMaxWork,
   NetricsLock l,
   int estNumRecs
) sealed 
J#
public NetricsTableStats recadd(
   string tblName,
   NetricsTableRecSrc src,
   bool doMaxWork,
   NetricsLock l,
   int estNumRecs
)
JScript
public  function recadd(
   tblName : String,
   src : NetricsTableRecSrc,
   doMaxWork : bool,
   l : NetricsLock,
   estNumRecs : int
) : NetricsTableStats

Parameters

tblName
The name of the table that the records will be added to
src
The record source for those records which will be added
doMaxWork
Continue on error - adds those records which do not already exist
l
A NetricsLock object which will pass the lock key to the table. If the table is locked with a lock key and this parameter is not passed with the matchine key, the operation will fail.
estNumRecs
The estimated number of records in the record source. This is used by the server to determine the most efficient loading method. It need not be exact or even close.

Return Value

The stats for the table after the records have been added

Implements

INetricsServerInterface.recadd

Exceptions

Exception TypeCondition
NetricsExceptionIf the server indicates that an error has occured (Possible errors - TBLLOCKED, TBLNOTFOUND, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, RECEXISTS, UPDPARAM, SHUTDOWN)

See Also