Click or drag to resize

DataServer.Rollback Method (Typed)

X#
Undo the changes made to this data server within the current transaction.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Rollback() AS LOGIC
Request Example View Source

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE.
Remarks
This method can fail for many reasons, from a lack of capability in the server to lock conflicts to technical problems such as network crashes. Use DataServer:Status to determine the exact cause of the failure. Note that not all servers support this operation, including the standard Xbase DBServer. If the server does support it, the exact implications of a rollback vary with the server. With some database management systems, the method rolls back all servers using the same connection; with others, it rolls back only this server. In addition, some SQL servers have other implications of a rollback operation (they can close cursors, for example).
Tip Tip
You should carefully study the documentation for your database management system.
See Also