Server-side object | |
Implemented in | Netscape Server 3.0 |
storedProc
method of the database
object or of a Connection
object. You do not call a Stproc
constructor.Stproc
object, use the close
method to close it and release the memory it uses. If you release a connection that has an open stored procedure, the runtime engine waits until the stored procedure is closed before actually releasing the connection.
If you do not explicitly close a stored procedure with the close
method, the JavaScript runtime engine on the server automatically tries to close all open stored procedures when the associated database
or Connection
object goes out of scope. This can tie up system resources unnecessarily. It can also lead to unpredictable results.
|
Allows the addition of properties to a Stproc object.
|
Function.prototype
.
Property of |
Stproc
|
Implemented in | LiveWire 1.0 |
Method of |
Stproc
|
Implemented in | Netscape Server 3.0 |
close()
majorErrorCode
and majorErrorMessage
methods to interpret the cause of the error.close
method closes a stored procedure and releases the memory it uses. If you do not explicitly close a stored procedure with the close
method, the JavaScript runtime engine on the server automatically closes it when the corresponding client
object goes out of scope.
Method of |
Stproc
|
Implemented in | Netscape Server 3.0 |
outParamCount()
outParameters
, to ensure that the stored procedure has output parameters.
Method of |
Stproc
|
Implemented in | Netscape Server 3.0 |
outParameters (n)
n | Zero-based ordinal for the output parameter to return. |
You should always call the outParamCount
method before you call this method. If outParamCount
returns 0, the stored procedure has no output parameters. In this situation, do not call this method.
Method of |
Stproc
|
Implemented in | Netscape Server 3.0 |
resultSet ()
resultSet
method. See the description of the Resultset
for restrictions on when you can use this method access the result sets for a stored procedure.spobj = connobj.storedProc("getcusts");
// Creates a new result set object
resobj = spobj.resultSet();
Method of |
Stproc
|
Implemented in | Netscape Server 3.0 |
returnValue()
For Oracle, this method returns null if the stored procedure did not return a value or the return value of the stored procedure.
For Informix, DB2, and ODBC, this method always returns null.
Last Updated: 10/31/97 16:36:13