Professional Documents
Culture Documents
stored procedure is a precompiler.A stored procedure is a group of sql statements that has been
created and stored in
the database. Stored procedure will accept input parameters,out put parameters so that a single
procedure can be used
over the network by several clients using different input data. Stored procedure will reduce
network traffic and increase
the performance. If we modify stored procedure all the clients will get the updated stored
procedure
advantages:
You can create the procedure once, store it in the database, and call it any number of times
in your program.
Disadvantages:
Stored procedure language may differ from one database system to another.
input parameters ,
OUTPUT PARAMETERS
AS
BEGIN
SQL QUERY
END
SELECT COMMAND:
AS
BEGIN
END
INSERT COMMAND:
CTRATE PROC SP_INSERT
@STUDENTID INT,
@STUDENTNAME VARCHAR(50),
@STUDENTADDRESS VARCHAR(50)
AS
BEGIN
END
update command:
@studentid int,
@studentname varchar(50),
@studentaddress varchar(20)
as
begin
endn