Batches are temporary in nature. To execute a batch more than once, you need to recreate SQL statements and submit them to the server. This leads to an increase in the overhead, as the server needs to compile and create the execu...
Sunday, November 9, 2014
Tuesday, October 14, 2014
Calling a Procedure from another Procedure: SQL
At times, you might need to use the values returned by a procedure in another procedure. For this, you can execute or call one procedure from within another procedure.
A procedure that calls or executes another procedure is know...
Monday, October 13, 2014
How to Return values from Stored Procedure: SQL
Similar to providing input values to the procedures at run time, you can also return values as output from the procedures. The values can be returned to the calling application through output parameters. To specify a parameter as...
Sunday, October 12, 2014
How to Create Parameterized Stored Procedure: SQL
At times, you need to execute a procedure for different values of a variable that are provided at run time. For this, you can create a parameterized stored procedure. Parameters are used to pass values to the stored procedure dur...
Friday, October 10, 2014
Guidelines to Create and Execute Stored Procedure: SQL
To create stored procedure database developer have to keep some points in mind. The following points need to be considered before creating a stored procedure:
You cannot combine the CREATE PROCEDURE statement with other SQL sta...