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
What is transaction server explicit transaction?
What is simple indexing method?
What is a data source or ds? : sql server analysis services, ssas
How to round a numeric value to a specific precision?
What are scalar functions?
What is blocking and how would you troubleshoot it? : sql server database administration
What are different types of join?
Can sql servers link to other servers like oracle?
What is tcl in sql server?
What is a field in a table?
What is sql azure database?
How do I know if localdb is running?
What is sql server query analyzer?
How to replace the Query Result 'Null Value' with a text ?
What are clustered and non-clustered index?