Skip to main content
Version: 2025

Sql

Namespace: PPJ.Runtime.Sql

Assembly: PPJ.Web.49 (4.9.0.0)

Summary description for Sql.

public class Sql

Properties

Static memberDatabase

SalString: This string variable contains the name of the database to which the application connects.

Static memberIsolationLevel

SalString: This system variable sets the isolation level for the next connection to a database server. The isolation level controls the effect that changes made by one user have on another user accessing the same tables. Valid strings are: - Read Repeatability (RR) - Cursor Stability (CS) - Release Locks (RL)

Static memberPassword

SalString: This string variable contains a password necessary to access a database. The default password is SYSADM.

Static memberResultSet

Boolean: Result set status flag.

Static memberResultSetMode

ResultSetMode: Behavior for when the ResultSet mode is on.

SalString: SqlUDL is a system variable that can contain a provider name or the name of a UDL file to use for OLE DB connection information.

Static memberUser

SalString: This string variable contains a user name necessary to access a database. The default authorization name is SYSADM.

Methods

Static memberClearImmediate()

Disconnects the internal Sql Handle from a database.

Returns: SalBoolean.

Static memberClose(hSql)

Deprecated memberDeprecated:

ParameterTypeDescription
hSqlSalSqlHandle&

Returns: SalBoolean.

Static memberCloseAllSPResultSets(hSql)

Closes any result sets generated by the execution of a stored procedure.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean. bOk

Static memberCloseResultSet(hSql)

Close the current result set.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean. bOk

Static memberCommit(hSql)

Commits all of the SQL transaction's cursors that are connected to the same database.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Static memberCommit(hSql, errorHandler)

Commits all of the SQL transaction's cursors that are connected to the same database.

ParameterTypeDescription
hSqlSalSqlHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberCommitSession(hSession)

Commits the current transaction associated with the specified session.

ParameterTypeDescription
hSessionSalSqlSessionHandle

Returns: SalBoolean.

Static memberCommitSession(hSession, errorHandler)

Commits the current transaction associated with the specified session.

ParameterTypeDescription
hSessionSalSqlSessionHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberConnect(hSql)

ParameterTypeDescription
hSqlSalSqlHandle&

Returns: SalBoolean.

Static memberConnect(hSql, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberConnectImmediate()

Connects the internal Sql Handle used for SqlImmediate calls.

Returns: SalBoolean.

Static memberConnectTransaction(hSql, sName)

Deprecated memberDeprecated:

ParameterTypeDescription
hSqlSalSqlHandle&
sNameSalString

Returns: SalBoolean.

Static memberConnectUsingCursor(hSql, nCursor)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
nCursorSalNumber

Returns: SalBoolean.

Static memberContextClear(hSql)

Clears the sql context.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Static memberContextSet(hSql)

Sets the sql context to the current form.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Static memberContextSetToForm(hSql, hWnd)

Sets the context to the specified form.

ParameterTypeDescription
hSqlSalSqlHandle
hWndSalWindowHandle

Returns: SalBoolean.

Static memberCreateSession(hSession, sSessionProperties)

ParameterTypeDescription
hSessionSalSqlSessionHandle&
sSessionPropertiesSalString

Returns: SalBoolean.

Static memberCreateSession(hSession, sSessionProperties, errorHandler)

ParameterTypeDescription
hSessionSalSqlSessionHandle&
sSessionPropertiesSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberCreateStatement(hSession, hSql)

ParameterTypeDescription
hSessionSalSqlSessionHandle
hSqlSalSqlHandle&

Returns: SalBoolean.

Static memberDirectoryByName(sServerName, sArrayNames)

Returns the database names on the specified server.

ParameterTypeDescription
sServerNameSalStringThe name of a server.
sArrayNamesSalArray<SalString>The name of an array of strings containing database names.

Returns: SalBoolean. bOk

Static memberDisconnect(hSql)

ParameterTypeDescription
hSqlSalSqlHandle&

Returns: SalBoolean.

Static memberDisconnect(hSql, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberDisconnectWithoutCursor(hSql)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Static memberDropStoredCmd(hSql, sName)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
sNameSalString

Returns: SalBoolean.

Static memberError(hSql)

Returns the most recent error code for the specified Sql Handle.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalNumber.

Static memberErrorText(nError, nType, sError, nLength, nRealLength)

ParameterTypeDescription
nErrorSalNumber
nTypeSalNumber
sErrorSalString&
nLengthSalNumber
nRealLengthSalNumber&

Returns: SalBoolean.

Static memberExecute(hSql)

Executes a SQL statement that was previously prepared.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean. bOk

Static memberExecute(hSql, errorHandler)

Executes a SQL statement that was previously prepared.

ParameterTypeDescription
hSqlSalSqlHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberExecutionPlan(hSql, sString, nLength)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
sStringSalString
nLengthSalNumber

Returns: SalBoolean.

Static memberExists(sSelect, bExists)

ParameterTypeDescription
sSelectSalString
bExistsSalBoolean&

Returns: SalBoolean.

Static memberExists(sSelect, bExists, errorHandler)

ParameterTypeDescription
sSelectSalString
bExistsSalBoolean&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberExtractArgs(wParam, lParam, hSql, nErrorCode, nErrorPosition)

ParameterTypeDescription
wParamSalNumber
lParamSalNumber
hSqlSalSqlHandle&
nErrorCodeSalNumber&
nErrorPositionSalNumber&

Returns: SalBoolean.

Static memberFetchNext(hSql, nInd)

ParameterTypeDescription
hSqlSalSqlHandle
nIndSalNumber&

Returns: SalBoolean.

Static memberFetchNext(hSql, nInd, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
nIndSalNumber&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberFetchPrevious(hSql, nInd)

ParameterTypeDescription
hSqlSalSqlHandle
nIndSalNumber&

Returns: SalBoolean.

Static memberFetchPrevious(hSql, nInd, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
nIndSalNumber&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberFetchRow(hSql, nRow, nInd)

ParameterTypeDescription
hSqlSalSqlHandle
nRowSalNumber
nIndSalNumber&

Returns: SalBoolean.

Static memberFetchRow(hSql, nRow, nInd, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
nRowSalNumber
nIndSalNumber&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberFreeSession(hSession)

ParameterTypeDescription
hSessionSalSqlSessionHandle&

Returns: SalBoolean.

Static memberFreeSession(hSession, errorHandler)

ParameterTypeDescription
hSessionSalSqlSessionHandle&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberGetCmdOrRowsetPtr(hSql, bCmdOrRowset, numOLEDBPtr)

Deprecated memberDeprecated:

ParameterTypeDescription
hSqlSalSqlHandle
bCmdOrRowsetSalBoolean
numOLEDBPtrSalNumber&

Returns: SalBoolean.

Static memberGetCursor(hSql)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalNumber.

Static memberGetDSOrSessionPtr(hSql, bDSOrSession, numOLEDBPtr)

Deprecated memberDeprecated:

ParameterTypeDescription
hSqlSalSqlHandle
bDSOrSessionSalBoolean
numOLEDBPtrSalNumber&

Returns: SalBoolean.

Static memberGetError(hSql, nError, sError)

ParameterTypeDescription
hSqlSalSqlHandle
nErrorSalNumber&
sErrorSalString&

Returns: SalBoolean.

Static memberGetErrorPosition(hSql, nPos)

ParameterTypeDescription
hSqlSalSqlHandle
nPosSalNumber&

Returns: SalBoolean.

Static memberGetErrorText(nError, sError)

ParameterTypeDescription
nErrorSalNumber
sErrorSalString&

Returns: SalBoolean.

Static memberGetErrorTextX(nError)

Returns the error text corresponding to the error number.

ParameterTypeDescription
nErrorSalNumber

Returns: SalString.

Static memberGetLastStatement()

Returns the last SQL statement.

Returns: SalString. sSqlStatement

Static memberGetModifiedRows(hSql, nCount)

ParameterTypeDescription
hSqlSalSqlHandle
nCountSalNumber&

Returns: SalBoolean.

Static memberGetNextSPResultSet(hSql, sIntoList, bEndOfRS)

ParameterTypeDescription
hSqlSalSqlHandle
sIntoListSalString
bEndOfRSSalBoolean&

Returns: SalBoolean.

Static memberGetParameter(hSql, nParameter, nNumber, sString)

ParameterTypeDescription
hSqlSalSqlHandle
nParameterSalNumber
nNumberSalNumber&
sStringSalString&

Returns: SalBoolean.

Static memberGetParameterAll(hSql, nParameter, nNumber, sString, bNumber)

Deprecated memberDeprecated:

ParameterTypeDescription
hSqlSalSqlHandle
nParameterSalNumber
nNumberSalNumber&
sStringSalString&
bNumberSalBoolean

Returns: SalBoolean.

Static memberGetResultSetCount(hSql, nCount)

ParameterTypeDescription
hSqlSalSqlHandle
nCountSalNumber&

Returns: SalBoolean.

Static memberGetResultSetCount(hSql, nCount, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
nCountSalNumber&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberGetRollbackFlag(hSql, bRollbackFlag)

Deprecated memberDeprecated:

ParameterTypeDescription
hSqlSalSqlHandle
bRollbackFlagSalBoolean&

Returns: SalBoolean.

Static memberGetSessionErrorInfo(hSession, nErrorNumber, sErrorDescription, sSqlState)

ParameterTypeDescription
hSessionSalSqlSessionHandle
nErrorNumberSalNumber&
sErrorDescriptionSalString&
sSqlStateSalString&

Returns: SalBoolean.

Static memberGetSessionHandle(hSql, hSession)

ParameterTypeDescription
hSqlSalSqlHandle
hSessionSalSqlSessionHandle&

Returns: SalBoolean.

Static memberGetSessionParameter(hSession, nParameter, nValue, sValue)

ParameterTypeDescription
hSessionSalSqlSessionHandle
nParameterSalNumber
nValueSalNumber&
sValueSalString&

Returns: SalBoolean.

Static memberGetSqlHandle(Number)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
NumberSalNumber

Returns: SalSqlHandle.

Static memberGetStatementErrorInfo(hSql, nErrorNumber, sErrorDescription, sSqlState)

ParameterTypeDescription
hSqlSalSqlHandle
nErrorNumberSalNumber&
sErrorDescriptionSalString&
sSqlStateSalString&

Returns: SalBoolean.

Static memberImmediate(sSqlCommand)

Prepares and executes a SQL statement.

ParameterTypeDescription
sSqlCommandSalString

Returns: SalBoolean.

Static memberImmediate(sSqlCommand, errorHandler)

Prepares and executes a SQL statement.

ParameterTypeDescription
sSqlCommandSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberImmediateContext(command, context)

Prepares and executes a SQL statement using a different sql context.

ParameterTypeDescription
commandSalString
contextObject

Returns: SalBoolean.

Static memberOpen(hSql, sCursorName)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
sCursorNameSalString

Returns: SalBoolean.

Static memberOraPLSQLCommand(hSql, sCommand)

Executes an Oracle PL/SQL stored procedure. Supports dynamic arrays and receive array parameters.

ParameterTypeDescription
hSqlSalSqlHandle
sCommandSalString

Returns: SalBoolean.

Static memberOraPLSQLCommand(hSql, sCommand, errorHandler)

Executes an Oracle PL/SQL stored procedure. Supports dynamic arrays and receive array parameters.

ParameterTypeDescription
hSqlSalSqlHandle
sCommandSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberOraPLSQLExecute(hSql)

Executes the anonymous PL/SQL block that was prepared using SqlOraPLSQLPrepare.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Static memberOraPLSQLExecute(hSql, errorHandler)

Executes the anonymous PL/SQL block that was prepared using SqlOraPLSQLPrepare.

ParameterTypeDescription
hSqlSalSqlHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberOraPLSQLPrepare(hSql, sAnonymousPLSQLBlock)

Compiles the anonymous PL/SQL block.

ParameterTypeDescription
hSqlSalSqlHandle
sAnonymousPLSQLBlockSalString

Returns: SalBoolean.

Static memberOraPLSQLPrepare(hSql, sAnonymousPLSQLBlock, errorHandler)

Compiles the anonymous PL/SQL block.

ParameterTypeDescription
hSqlSalSqlHandle
sAnonymousPLSQLBlockSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberOraPLSQLStringBindType(hSql, sBindName, nBindType)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
sBindNameSalString
nBindTypeSalNumber

Returns: SalBoolean.

Static memberPrepare(hSql, sSqlStatement)

Compiles a SQL statement for execution.

ParameterTypeDescription
hSqlSalSqlHandle
sSqlStatementSalString

Returns: SalBoolean.

Static memberPrepare(hSql, sSqlStatement, errorHandler)

Compiles a SQL statement for execution.

ParameterTypeDescription
hSqlSalSqlHandle
sSqlStatementSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberPrepareAndExecute(hSql, sSqlStatement)

Compiles and executes a SQL statement.

ParameterTypeDescription
hSqlSalSqlHandle
sSqlStatementSalString

Returns: SalBoolean.

Static memberPrepareAndExecute(hSql, sSqlStatement, errorHandler)

Compiles and executes a SQL statement.

ParameterTypeDescription
hSqlSalSqlHandle
sSqlStatementSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberPrepareSP(hSql, sStoredProc, sIntoList)

Prepares a stored procedure invocation statement.

ParameterTypeDescription
hSqlSalSqlHandle
sStoredProcSalString
sIntoListSalString

Returns: SalBoolean.

Static memberPrepareSP(hSql, sStoredProc, sIntoList, errorHandler)

Prepares a stored procedure invocation statement.

ParameterTypeDescription
hSqlSalSqlHandle
sStoredProcSalString
sIntoListSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberRetrieve(hSql, sName, sBindList, sIntoList)

Retrieves a SQLBase compiled command.

ParameterTypeDescription
hSqlSalSqlHandle
sNameSalString
sBindListSalString
sIntoListSalString

Returns: SalBoolean.

Static memberRetrieve(hSql, sName, sBindList, sIntoList, errorHandler)

Retrieves a SQLBase compiled command.

ParameterTypeDescription
hSqlSalSqlHandle
sNameSalString
sBindListSalString
sIntoListSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberRollback(hSql)

Rolls back all of the SQL transaction's cursors that are connected to the same database.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Static memberRollback(hSql, errorHandler)

Rolls back all of the SQL transaction's cursors that are connected to the same database.

ParameterTypeDescription
hSqlSalSqlHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberRollbackSession(hSession)

Rolls back the current transaction associated with the specified session.

ParameterTypeDescription
hSessionSalSqlSessionHandle

Returns: SalBoolean.

Static memberRollbackSession(hSession, errorHandler)

Rolls back the current transaction associated with the specified session.

ParameterTypeDescription
hSessionSalSqlSessionHandle
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberSetInMessage(hSql, nSize)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
nSizeSalNumber

Returns: SalBoolean.

Static memberSetIsolationLevel(hSql, sIsolation)

Sets the isolation level.

ParameterTypeDescription
hSqlSalSqlHandle
sIsolationSalStringCS=Cursor Stability; RL=Release Locks; RO=Read Only; RR=Read Repeatability

Returns: SalBoolean.

Static memberSetLockTimeout(hSql, nTimeout)

Specifies the maximum time to wait before generating an error.

ParameterTypeDescription
hSqlSalSqlHandle
nTimeoutSalNumber

Returns: SalBoolean.

Static memberSetLongBindDatatype(nBindVarNumber, nDatatype)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
nBindVarNumberSalNumber
nDatatypeSalNumber

Returns: SalBoolean.

Static memberSetOutMessage(hSql, nSize)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
nSizeSalNumber

Returns: SalBoolean.

Static memberSetParameter(hSql, nParameter, nNumber, sString)

Sets the value of a database parameter.

ParameterTypeDescription
hSqlSalSqlHandle
nParameterSalNumber
nNumberSalNumber
sStringSalString

Returns: SalBoolean.

Static memberSetParameterAll(hSql, nParameter, nValue, sValue, bNumber)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
nParameterSalNumber
nValueSalNumber
sValueSalString
bNumberSalBoolean

Returns: SalBoolean.

Static memberSetResultSet(hSql, bSet)

Turns result set mode on or off for all handles associated with the same connection.

ParameterTypeDescription
hSqlSalSqlHandle
bSetSalBoolean

Returns: SalBoolean.

Static memberSetSessionParameter(hSession, nParameter, nValue, sValue)

Sets the value of the specified session property.

ParameterTypeDescription
hSessionSalSqlSessionHandle
nParameterSalNumber
nValueSalNumber
sValueSalString

Returns: SalBoolean.

Static memberStore(hSql, sName, sSqlCommand)

Deprecated memberDeprecated: Not supported.

ParameterTypeDescription
hSqlSalSqlHandle
sNameSalString
sSqlCommandSalString

Returns: SalBoolean.

Static memberVarSetup(hSql, context)

Saves the sql bind variables context.

ParameterTypeDescription
hSqlSalSqlHandle
contextObject

Returns: SalBoolean.

Static memberVarSetup(hSql)

Saves the sql bind variables context using the SalCompileAndEvaluate context.

ParameterTypeDescription
hSqlSalSqlHandle

Returns: SalBoolean.

Static memberXDirectory(nServer, sDatabases)

Deprecated memberDeprecated:

ParameterTypeDescription
nServerSalNumber
sDatabasesSalArray`1&

Returns: SalBoolean.