Skip to main content

Sql

Namespace: PPJ.Runtime.Sql

Assembly: PPJ.Runtime.49 (4.9.0.0)

Summary description for Sql.

public class Sql

Fields

NameTypeDescription
DatabaseSalStringThis string variable contains the name of the database to which the application connects.
IsolationLevelSalStringThis 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)
PasswordSalStringThis string variable contains a password necessary to access a database. The default password is SYSADM.
ResultSetBooleanResult set status flag.
ResultSetModeResultSetModeBehavior for when the ResultSet mode is on.
UniversalDataLinkSalStringSqlUDL is a system variable that can contain a provider name or the name of a UDL file to use for OLE DB connection information.
UserSalStringThis 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(serverName, arrayNames)

Returns the database names on the specified server.

ParameterTypeDescription
serverNameSalStringThe name of a server.
arrayNamesSalArray<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(select, exists)

ParameterTypeDescription
selectSalString
existsSalBoolean&

Returns: SalBoolean.

Static memberExists(select, exists, errorHandler)

ParameterTypeDescription
selectSalString
existsSalBoolean&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberExtractArgs(wParam, lParam, hSql, errorCode, errorPosition)

ParameterTypeDescription
wParamSalNumber
lParamSalNumber
hSqlSalSqlHandle&
errorCodeSalNumber&
errorPositionSalNumber&

Returns: SalBoolean.

Static memberFetchNext(hSql, ind)

ParameterTypeDescription
hSqlSalSqlHandle
indSalNumber&

Returns: SalBoolean.

Static memberFetchNext(hSql, ind, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
indSalNumber&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberFetchPrevious(hSql, ind)

ParameterTypeDescription
hSqlSalSqlHandle
indSalNumber&

Returns: SalBoolean.

Static memberFetchPrevious(hSql, ind, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
indSalNumber&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberFetchRow(hSql, row, ind)

ParameterTypeDescription
hSqlSalSqlHandle
rowSalNumber
indSalNumber&

Returns: SalBoolean.

Static memberFetchRow(hSql, row, ind, errorHandler)

ParameterTypeDescription
hSqlSalSqlHandle
rowSalNumber
indSalNumber&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberFreeSession(hSession, errorHandler)

ParameterTypeDescription
hSessionSalSqlSessionHandle&
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberFreeSession(hSession)

ParameterTypeDescription
hSessionSalSqlSessionHandle&

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, numError, strError)

ParameterTypeDescription
hSqlSalSqlHandle
numErrorSalNumber&
strErrorSalString&

Returns: SalBoolean.

Static memberGetErrorPosition(hSql, pos)

ParameterTypeDescription
hSqlSalSqlHandle
posSalNumber&

Returns: SalBoolean.

Static memberGetErrorText(nError, sError)

ParameterTypeDescription
nErrorSalNumber
sErrorSalString&

Returns: SalBoolean.

Static memberGetErrorTextX(error)

Returns the error text corresponding to the error number.

ParameterTypeDescription
errorSalNumber

Returns: SalString.

Static memberGetLastStatement()

Returns the last SQL statement.

Returns: SalString. sSqlStatement

Static memberGetModifiedRows(hSql, nCount)

ParameterTypeDescription
hSqlSalSqlHandle
nCountSalNumber&

Returns: SalBoolean.

Static memberGetNextSPResultSet(hSql, intoList, endOfRS)

ParameterTypeDescription
hSqlSalSqlHandle
intoListSalString
endOfRSSalBoolean&

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, errorNumber, errorDescription, sqlState)

ParameterTypeDescription
hSqlSalSqlHandle
errorNumberSalNumber&
errorDescriptionSalString&
sqlStateSalString&

Returns: SalBoolean.

Static memberImmediate(sqlCommand)

Prepares and executes a SQL statement.

ParameterTypeDescription
sqlCommandSalString

Returns: SalBoolean.

Static memberImmediate(sqlCommand, errorHandler)

Prepares and executes a SQL statement.

ParameterTypeDescription
sqlCommandSalString
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, sqlStatement)

Compiles a SQL statement for execution.

ParameterTypeDescription
hSqlSalSqlHandle
sqlStatementSalString

Returns: SalBoolean.

Static memberPrepare(hSql, sqlStatement, errorHandler)

Compiles a SQL statement for execution.

ParameterTypeDescription
hSqlSalSqlHandle
sqlStatementSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberPrepareAndExecute(hSql, sqlStatement)

Compiles and executes a SQL statement.

ParameterTypeDescription
hSqlSalSqlHandle
sqlStatementSalString

Returns: SalBoolean.

Static memberPrepareAndExecute(hSql, sqlStatement, errorHandler)

Compiles and executes a SQL statement.

ParameterTypeDescription
hSqlSalSqlHandle
sqlStatementSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberPrepareSP(hSql, storedProc, intoList)

Prepares a stored procedure invocation statement.

ParameterTypeDescription
hSqlSalSqlHandle
storedProcSalString
intoListSalString

Returns: SalBoolean.

Static memberPrepareSP(hSql, storedProc, intoList, errorHandler)

Prepares a stored procedure invocation statement.

ParameterTypeDescription
hSqlSalSqlHandle
storedProcSalString
intoListSalString
errorHandlerWhenSqlErrorHandler

Returns: SalBoolean.

Static memberRetrieve(hSql, name, bindList, intoList)

Retrieves a SQLBase compiled command.

ParameterTypeDescription
hSqlSalSqlHandle
nameSalString
bindListSalString
intoListSalString

Returns: SalBoolean.

Static memberRetrieve(hSql, name, bindList, intoList, errorHandler)

Retrieves a SQLBase compiled command.

ParameterTypeDescription
hSqlSalSqlHandle
nameSalString
bindListSalString
intoListSalString
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, isolation)

Sets the isolation level.

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

Returns: SalBoolean.

Static memberSetLockTimeout(hSql, timeout)

Specifies the maximum time to wait before generating an error.

ParameterTypeDescription
hSqlSalSqlHandle
timeoutSalNumber

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, set)

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

ParameterTypeDescription
hSqlSalSqlHandle
setSalBoolean

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.