adspace


Why do we use stored procedures in sql server?

Answer Posted / Durgesh Joshi

Stored procedures are used in SQL Server for several reasons, including: improved performance through reusable code and query optimization, enforcing data integrity through parameter validation and transaction handling, encapsulating complex logic, and securing sensitive data by limiting direct access to tables.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can you add custom error messages to sql server?

1215


How can we solve concurrency problems?

1123


What is standby servers? Explain types of standby servers.

1081


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1215


What are the properties of the transaction?

1074


What is the difference between for xml raw and for xml auto?

1119


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2296


Can we do dml on views?

1039


List out the different types of locks available in sql server?

1051


What are wait types?

1251


Explain system functions or built-in functions? What are different types of system functions?

1067


Can one drop a column from a table?

1091


Is it possible to have clustered index on separate drive from original table location?

1041


How can I check that whether automatic statistic update is enabled or not?

1113


How to connect php with different port numbers?

1191