Difference between writing SQL query and stored procedure ?
Answer Posted / pratap
A stored procedure is a named group of SQL statements that have been previously created and stored in the server database. Stored procedures accept input parameters so that a single procedure can be used over the network by several clients using different input data. And when the procedure is modified, all clients automatically get the new version. Stored procedures reduce network traffic and improve performance. Stored procedures can be used to help ensure the integrity of the database.
CREATE PROCEDURE procedure_name
@param data_type = default_value,
@param data_type = default_value,
@param data_type = default_value
AS
BEGIN
DELETE FROM Employees
WHERE EmployeeId = @EmployeeId;
END
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
How would we use distinct statement? What is its use?
What is the difference between coalesce() & isnull()?
What is the default server name for sql server?
Can we store videos inside the sql server table?
What are the different authentication modes in sql server?
How do I view a stored procedure in sql server?
What are different types of data sources?
What is Command line parameters in PLSQL.?
What is sql view?
Explain what are the events recorded in a transaction log?
How do I install only the client tools of sql server 2000?
What is the server name in sql server?
Can you explain what are commit and rollback in sql?
Explain difference between control flow and data flow?
What is a scheduled job or what is a scheduled task?