LastOperationResult
- Last UpdatedNov 17, 2021
- 1 minute read
The LastOperationResult property is a read-only property that gets the error code for the last insert.
Syntax
Result = aaHistClientSingleValueEntry.LastOperationResult;
Return Values
Returns one of the following values:
0 = The value was successfully inserted.
-1 = The insert failed.
-2 = The specified server is not in the collection of servers. Be sure that you call the AddServer method first.
-3 = No server name provided. The CurrentServerName property is blank or the serverName parameter was not provided for the InsertValue method.
-4 = No tagname provided.
-5 = The date/time is invalid (the date/time string was unable to be converted).
-6 = The tag does not exist on the server.
<other negative values> = Error code from Microsoft SQL Server. For more information, check the LastErrorDetails property.
The default value is 0.
Remarks
Before calling this method, call the AddServer method to ensure that the server name is in the server collection for this object.