Skip to main content

Sql

Namespace: PPJ.Runtime.Sql

Assembly: PPJ.Runtime.50 (5.0.0.0)

Provides SAL-compatible database connection, statement, transaction, and error operations.

public class Sql

Connection defaults are static. The reusable immediate-query handle is stored separately for each thread.

Example:

using PPJ.Runtime;
using PPJ.Runtime.Sql;

SalSqlHandle statement = new SalSqlHandle();
if (Sql.Connect(ref statement))
{
try
{
// Supply SQL suitable for the configured database.
Sql.PrepareAndExecute(statement, "SELECT CURRENT_TIMESTAMP");
}
finally
{
Sql.Disconnect(ref statement);
}
}

Fields

NameTypeDescriptionValue
DatabaseSalStringSpecifies the database name used for connections. Initially an empty string.
IsolationLevelSalStringSpecifies the isolation-level code for new connections. Initially "RL" (release locks).
PasswordSalStringSpecifies the password used for database connections. Initially an empty string.
ResultSetBooleanSpecifies whether result-set mode is enabled for new connections. Initially true.
ResultSetModeResultSetModeSpecifies the row-caching mode used when result-set mode is enabled. Initially Disconnected.
UniversalDataLinkSalStringSpecifies the provider name or UDL file used for connection information. Initially an empty string.
UserSalStringSpecifies the user name used for database connections. Initially an empty string.

Methods

Static member ClearImmediate()

Disconnects the reusable handle used by immediate SQL operations.

Returns: SalBoolean. The disconnect result.

Static member Close(hSql)

Deprecated memberDeprecated: Retains the unsupported Close operation for source compatibility.

ParameterTypeDescription
hSql by referenceSalSqlHandleIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member CloseAllSPResultSets(hSql)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member CloseResultSet(hSql)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member Commit(hSql)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member Commit(hSql, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member CommitSession(hSession)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.

Returns: SalBoolean.

Static member CommitSession(hSession, errorHandler)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member Connect(hSql)

ParameterTypeDescription
hSql by referenceSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member Connect(hSql, errorHandler)

ParameterTypeDescription
hSql by referenceSalSqlHandleThe SQL statement handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member ConnectImmediate()

Ensures that the reusable immediate-query handle is connected with the current credentials.

Returns: SalBoolean. True if the existing connection can be reused or a new connection succeeds; otherwise, false.

An existing connection is reused when Database, User, and Password are unchanged. Changes to other defaults alone do not reconnect it.

Static member ConnectTransaction(hSql, sName)

Deprecated memberDeprecated: Retains the unsupported ConnectTransaction operation for source compatibility.

ParameterTypeDescription
hSql by referenceSalSqlHandleIgnored; the operation is not implemented.
sNameSalStringIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member ConnectUsingCursor(hSql, nCursor)

Deprecated memberDeprecated: Retains the unsupported ConnectUsingCursor operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
nCursorSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member ContextClear(hSql)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member ContextSet(hSql)

Uses the current form as the SQL variable-resolution context.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.

Returns: SalBoolean. The result of setting the context to Sys.hWndForm.

Static member ContextSetToForm(hSql, hWnd)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
hWndSalWindowHandle

Returns: SalBoolean.

Static member CreateSession(hSession, sSessionProperties)

ParameterTypeDescription
hSession by referenceSalSqlSessionHandleThe database session handle on which to perform the operation.
sSessionPropertiesSalString

Returns: SalBoolean.

Static member CreateSession(hSession, sSessionProperties, errorHandler)

ParameterTypeDescription
hSession by referenceSalSqlSessionHandleThe database session handle on which to perform the operation.
sSessionPropertiesSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member CreateStatement(hSession, hSql)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.
hSql by referenceSalSqlHandle

Returns: SalBoolean.

Static member DirectoryByName(serverName, arrayNames)

Copies the database names exposed by a server into a SAL array.

ParameterTypeDescription
serverNameSalStringThe server to query.
arrayNamesSalArray<SalString>Receives names at consecutive indices starting at zero.

Returns: SalBoolean. True if the provider returns a name array; false if it returns null.

Existing elements beyond the returned names are not removed.

Static member Disconnect(hSql)

ParameterTypeDescription
hSql by referenceSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member Disconnect(hSql, errorHandler)

ParameterTypeDescription
hSql by referenceSalSqlHandleThe SQL statement handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member DisconnectWithoutCursor(hSql)

Deprecated memberDeprecated: Retains the unsupported DisconnectWithoutCursor operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member DropStoredCmd(hSql, sName)

Deprecated memberDeprecated: Retains the unsupported DropStoredCmd operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
sNameSalStringIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member Error(hSql)

Returns the most recent error code recorded by a statement handle.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.

Returns: SalNumber. The handle's LastErrorCode value.

Static member ErrorText(nError, nType, sError, nLength, nRealLength)

Retrieves and truncates a SQL error message.

ParameterTypeDescription
nErrorSalNumberThe error code.
nTypeSalNumberThe requested text category. SQLERROR_Remedy produces an empty result.
sError by referenceSalStringReceives the truncated message, or an empty string for remedy text.
nLengthSalNumberThe maximum message length.
nRealLength by referenceSalNumberReceives the length after truncation, rather than the original message length.

Returns: SalBoolean. True, including when the error code has no message.

If lookup fails, both receive arguments remain unchanged. Remedy text is unsupported and produces an empty string with length zero.

Static member Execute(hSql)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member Execute(hSql, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member ExecutionPlan(hSql, sString, nLength)

Deprecated memberDeprecated: Retains the unsupported ExecutionPlan operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
sStringSalStringIgnored; the operation is not implemented.
nLengthSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member Exists(select, exists)

Executes a query on the immediate handle and attempts to fetch its first row.

ParameterTypeDescription
selectSalStringThe SELECT statement.
exists by referenceSalBooleanReceives the FetchNext result after successful preparation and execution; unchanged if an earlier step fails.

Returns: SalBoolean. False if connecting, preparing, or executing fails; otherwise, true.

The return value does not indicate that a row exists. Read the receive argument for that result. Bind variables are cleared after the fetch.

Static member Exists(select, exists, errorHandler)

Executes a query on the immediate handle and attempts to fetch its first row.

ParameterTypeDescription
selectSalStringThe SELECT statement.
exists by referenceSalBooleanReceives the FetchNext result after successful preparation and execution; unchanged if an earlier step fails.
errorHandlerWhenSqlErrorHandlerThe SQL error handler installed for this operation.

Returns: SalBoolean. False if connecting, preparing, or executing fails; otherwise, true.

The return value does not indicate that a row exists. Read the receive argument for that result. Bind variables are cleared after the fetch.

Static member ExtractArgs(wParam, lParam, hSql, errorCode, errorPosition)

Decodes the arguments of a SAM_SqlError message.

ParameterTypeDescription
wParamSalNumberThe message argument containing the statement handle.
lParamSalNumberThe packed error code and position.
hSql by referenceSalSqlHandleReceives the decoded SQL handle.
errorCode by referenceSalNumberReceives the low 16 bits of lParam.
errorPosition by referenceSalNumberReceives lParam shifted right by 16 bits.

Returns: SalBoolean. True if the decoded SQL handle is non-null; otherwise, false.

Static member FetchNext(hSql, ind)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
ind by referenceSalNumber

Returns: SalBoolean.

Static member FetchNext(hSql, ind, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
ind by referenceSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member FetchPrevious(hSql, ind)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
ind by referenceSalNumber

Returns: SalBoolean.

Static member FetchPrevious(hSql, ind, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
ind by referenceSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member FetchRow(hSql, row, ind)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
rowSalNumber
ind by referenceSalNumber

Returns: SalBoolean.

Static member FetchRow(hSql, row, ind, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
rowSalNumber
ind by referenceSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member FreeSession(hSession)

ParameterTypeDescription
hSession by referenceSalSqlSessionHandleThe database session handle on which to perform the operation.

Returns: SalBoolean.

Static member FreeSession(hSession, errorHandler)

ParameterTypeDescription
hSession by referenceSalSqlSessionHandleThe database session handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member GetCmdOrRowsetPtr(hSql, bCmdOrRowset, numOLEDBPtr)

Deprecated memberDeprecated: Retains the unsupported GetCmdOrRowsetPtr operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
bCmdOrRowsetSalBooleanIgnored; the operation is not implemented.
numOLEDBPtr by referenceSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member GetCursor(hSql)

Deprecated memberDeprecated: Retains the unsupported GetCursor operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.

Returns: SalNumber. Zero.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member GetDSOrSessionPtr(hSql, bDSOrSession, numOLEDBPtr)

Deprecated memberDeprecated: Retains the unsupported GetDSOrSessionPtr operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
bDSOrSessionSalBooleanIgnored; the operation is not implemented.
numOLEDBPtr by referenceSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member GetError(hSql, numError, strError)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
numError by referenceSalNumber
strError by referenceSalString

Returns: SalBoolean.

Static member GetErrorPosition(hSql, pos)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
pos by referenceSalNumber

Returns: SalBoolean.

Static member GetErrorText(nError, sError)

Looks up the message associated with a SQL error code.

ParameterTypeDescription
nErrorSalNumberThe error code.
sError by referenceSalStringReceives the message if found; otherwise remains unchanged.

Returns: SalBoolean. True if a message is available; otherwise, false.

Static member GetErrorTextX(error)

Returns the message associated with a SQL error code.

ParameterTypeDescription
errorSalNumberThe error code.

Returns: SalString. The message, or SalString.Null if no message is available.

Static member GetLastStatement()

Returns the most recently recorded SQL statement.

Returns: SalString. The statement text maintained by SalSqlHandle.GetLastStatement.

Static member GetModifiedRows(hSql, nCount)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
nCount by referenceSalNumber

Returns: SalBoolean.

Static member GetNextSPResultSet(hSql, intoList, endOfRS)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
intoListSalString
endOfRS by referenceSalBoolean

Returns: SalBoolean.

Static member GetParameter(hSql, nParameter, nNumber, sString)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
nParameterSalNumber
nNumber by referenceSalNumber
sString by referenceSalString

Returns: SalBoolean.

Static member GetParameterAll(hSql, nParameter, nNumber, sString, bNumber)

Deprecated memberDeprecated: Retains the unsupported GetParameterAll operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
nParameterSalNumberIgnored; the operation is not implemented.
nNumber by referenceSalNumberIgnored; the operation is not implemented.
sString by referenceSalStringIgnored; the operation is not implemented.
bNumberSalBooleanIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member GetResultSetCount(hSql, nCount)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
nCount by referenceSalNumber

Returns: SalBoolean.

Static member GetResultSetCount(hSql, nCount, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
nCount by referenceSalNumber
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member GetRollbackFlag(hSql, bRollbackFlag)

Deprecated memberDeprecated: Retains the unsupported GetRollbackFlag operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
bRollbackFlag by referenceSalBooleanIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member GetSessionErrorInfo(hSession, nErrorNumber, sErrorDescription, sSqlState)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.
nErrorNumber by referenceSalNumber
sErrorDescription by referenceSalString
sSqlState by referenceSalString

Returns: SalBoolean.

Static member GetSessionHandle(hSql, hSession)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
hSession by referenceSalSqlSessionHandle

Returns: SalBoolean.

Static member GetSessionParameter(hSession, nParameter, nValue, sValue)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.
nParameterSalNumber
nValue by referenceSalNumber
sValue by referenceSalString

Returns: SalBoolean.

Static member GetSqlHandle(Number)

Deprecated memberDeprecated: Retains the unsupported GetSqlHandle operation for source compatibility.

ParameterTypeDescription
NumberSalNumberIgnored; the operation is not implemented.

Returns: SalSqlHandle. Null.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member GetStatementErrorInfo(hSql, errorNumber, errorDescription, sqlState)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
errorNumber by referenceSalNumber
errorDescription by referenceSalString
sqlState by referenceSalString

Returns: SalBoolean.

Static member Immediate(sqlCommand)

Prepares and executes SQL using the reusable immediate-query handle.

ParameterTypeDescription
sqlCommandSalStringThe SQL command.

Returns: SalBoolean. False if connecting, preparing, or executing fails; otherwise, true.

For queries and procedures, attempts to fetch one row and closes the result set. The fetch result does not affect the return value. Clears bind variables after execution.

Static member Immediate(sqlCommand, errorHandler)

Prepares and executes SQL using the reusable immediate-query handle.

ParameterTypeDescription
sqlCommandSalStringThe SQL command.
errorHandlerWhenSqlErrorHandlerThe SQL error handler installed for this operation.

Returns: SalBoolean. False if connecting, preparing, or executing fails; otherwise, true.

For queries and procedures, attempts to fetch one row and closes the result set. The fetch result does not affect the return value. Clears bind variables after execution.

Static member ImmediateContext(command, context)

Executes an immediate command using an explicit variable-resolution context.

ParameterTypeDescription
commandSalStringThe SQL command.
contextObjectThe context used to resolve bind and receive variables.

Returns: SalBoolean. The immediate execution result, or false if connection fails.

The context is reset to null only after a successful Immediate call. A failed call can leave the supplied context installed.

Static member Open(hSql, sCursorName)

Deprecated memberDeprecated: Retains the unsupported Open operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
sCursorNameSalStringIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member OraPLSQLCommand(hSql, sCommand)

Prepares and executes an Oracle PL/SQL stored-procedure command.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.
sCommandSalStringThe stored-procedure command, including its argument list.

Returns: SalBoolean. The result of the corresponding SqlOra operation.

Static member OraPLSQLCommand(hSql, sCommand, errorHandler)

Prepares and executes an Oracle PL/SQL stored-procedure command.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.
sCommandSalStringThe stored-procedure command, including its argument list.
errorHandlerWhenSqlErrorHandlerThe SQL error handler installed for this operation.

Returns: SalBoolean. The result of the corresponding SqlOra operation.

Static member OraPLSQLExecute(hSql)

Executes a previously prepared anonymous Oracle PL/SQL block.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.

Returns: SalBoolean. The result of the corresponding SqlOra operation.

Static member OraPLSQLExecute(hSql, errorHandler)

Executes a previously prepared anonymous Oracle PL/SQL block.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.
errorHandlerWhenSqlErrorHandlerThe SQL error handler installed for this operation.

Returns: SalBoolean. The result of the corresponding SqlOra operation.

Static member OraPLSQLPrepare(hSql, sAnonymousPLSQLBlock)

Prepares an anonymous Oracle PL/SQL block and its bind variables.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.
sAnonymousPLSQLBlockSalStringThe anonymous PL/SQL block.

Returns: SalBoolean. The result of the corresponding SqlOra operation.

Static member OraPLSQLPrepare(hSql, sAnonymousPLSQLBlock, errorHandler)

Prepares an anonymous Oracle PL/SQL block and its bind variables.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.
sAnonymousPLSQLBlockSalStringThe anonymous PL/SQL block.
errorHandlerWhenSqlErrorHandlerThe SQL error handler installed for this operation.

Returns: SalBoolean. The result of the corresponding SqlOra operation.

Static member OraPLSQLStringBindType(hSql, sBindName, nBindType)

Deprecated memberDeprecated: Retains the unsupported OraPLSQLStringBindType operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
sBindNameSalStringIgnored; the operation is not implemented.
nBindTypeSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member Prepare(hSql, sqlStatement)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
sqlStatementSalString

Returns: SalBoolean.

Static member Prepare(hSql, sqlStatement, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
sqlStatementSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member PrepareAndExecute(hSql, sqlStatement)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
sqlStatementSalString

Returns: SalBoolean.

Static member PrepareAndExecute(hSql, sqlStatement, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
sqlStatementSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member PrepareSP(hSql, storedProc, intoList)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
storedProcSalString
intoListSalString

Returns: SalBoolean.

Static member PrepareSP(hSql, storedProc, intoList, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
storedProcSalString
intoListSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member Retrieve(hSql, name, bindList, intoList)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
nameSalString
bindListSalString
intoListSalString

Returns: SalBoolean.

Static member Retrieve(hSql, name, bindList, intoList, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
nameSalString
bindListSalString
intoListSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member Rollback(hSql)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.

Returns: SalBoolean.

Static member Rollback(hSql, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member RollbackSession(hSession)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.

Returns: SalBoolean.

Static member RollbackSession(hSession, errorHandler)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static member SetInMessage(hSql, nSize)

Deprecated memberDeprecated: Retains the unsupported SetInMessage operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
nSizeSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member SetIsolationLevel(hSql, isolation)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
isolationSalString

Returns: SalBoolean.

Static member SetLockTimeout(hSql, timeout)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
timeoutSalNumber

Returns: SalBoolean.

Static member SetLongBindDatatype(nBindVarNumber, nDatatype)

Deprecated memberDeprecated: Retains the unsupported SetLongBindDatatype operation for source compatibility.

ParameterTypeDescription
nBindVarNumberSalNumberIgnored; the operation is not implemented.
nDatatypeSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member SetOutMessage(hSql, nSize)

Deprecated memberDeprecated: Retains the unsupported SetOutMessage operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
nSizeSalNumberIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member SetParameter(hSql, nParameter, nNumber, sString)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
nParameterSalNumber
nNumberSalNumber
sStringSalString

Returns: SalBoolean.

Static member SetParameterAll(hSql, nParameter, nValue, sValue, bNumber)

Deprecated memberDeprecated: Retains the unsupported SetParameterAll operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
nParameterSalNumberIgnored; the operation is not implemented.
nValueSalNumberIgnored; the operation is not implemented.
sValueSalStringIgnored; the operation is not implemented.
bNumberSalBooleanIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member SetResultSet(hSql, set)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
setSalBoolean

Returns: SalBoolean.

Static member SetSessionParameter(hSession, nParameter, nValue, sValue)

ParameterTypeDescription
hSessionSalSqlSessionHandleThe database session handle on which to perform the operation.
nParameterSalNumber
nValueSalNumber
sValueSalString

Returns: SalBoolean.

Static member Store(hSql, sName, sSqlCommand)

Deprecated memberDeprecated: Retains the unsupported Store operation for source compatibility.

ParameterTypeDescription
hSqlSalSqlHandleIgnored; the operation is not implemented.
sNameSalStringIgnored; the operation is not implemented.
sSqlCommandSalStringIgnored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.

Static member VarSetup(hSql, context)

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle on which to perform the operation.
contextObject

Returns: SalBoolean.

Static member VarSetup(hSql)

Captures bind-variable context using the current compile-and-evaluate context.

ParameterTypeDescription
hSqlSalSqlHandleThe SQL statement handle.

Returns: SalBoolean. The result of VarSetup on the handle with a null explicit context.

Static member XDirectory(nServer, sDatabases)

Deprecated memberDeprecated: Retains the unsupported XDirectory operation for source compatibility.

ParameterTypeDescription
nServerSalNumberIgnored; the operation is not implemented.
sDatabases by referenceSalArray<SalString>Ignored; the operation is not implemented.

Returns: SalBoolean. False.

Logs that the operation is unsupported. Reference arguments are left unchanged.