Difference between writing SQL query and stored procedure ?

Answer Posted / vial

stored proceure compiles only once and stores in database
managemant system so it is optimized for best performance
while sql query compiles every time and executes using dbms
driver so its performance decreses

Is This Answer Correct ?    77 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main sources of data?

603


How do I view a trc file?

513


What are the types of sql server?

525


Does partitioning help performance?

536


What is a covering index?

540






Write an sql query to find first weekday of the month?

492


Explain different forms of normalization?

539


Why we use trigger in sql server with example?

517


What is normalization process?

610


What is the difference between a "where" clause and a "having" clause?

624


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

547


How to list all columns in a table using odbc_columns()?

544


How to handle error or exception in sql?

542


Can you type more than one query in the query editor screen at the same time?

582


Do you know what is a linked server in sql server?

556