How can you stop stored procedures from recompiling?
Answer / Jitender Kumar
"You can prevent stored procedures from recompiling by using OPTION (RECOMPILE) or OPTION (OPTIMIZE FOR UNKNOWN) in the procedure definition. OPTION (RECOMPILE) forces the procedure to be recompiled each time it is executed, while OPTION (OPTIMIZE FOR UNKNOWN) optimizes the query based on unknown values at execution time.nAnother way to prevent recompilation is by using a stored procedure cache, which caches compiled versions of stored procedures for reuse.n
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the disadvantages of merge replication?
What happens if you insert a duplicate key for the primary key column in ms sql server?
Explain the microsoft sql server delete command?
what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?
what is difference between view and Dip.
How to edit table in sql server 2017?
What do we need queues in sql service broker?
please differentiate between delete and truncate?
What is the difference between lock, block and deadlock? : sql server database administration
What is BCNF? How is it better than 2NF & 3NF?
What are cursors in ms sql server?
How to join two tables in a single query in ms sql server?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)