Difference between inline query and stored procedure?
Answer Posted / sudama maharana
1. Stored procedure is loaded to database once it compiled, but inline queries are not loaded in to server. So, Stored procedure is in compiled form.
2. As Stored procedure is in compiled form, so in each calling to it, it takes less time than inline queries. Because in Stored procedure we are passing only the names, but in inline query we are passing the whole query.
3. Stored procedures are compiled only once and in each calling its only executing the query. But inline queries are compiled & executed in each calling. So, in stored procedure network Traffic is less.
4. In stored procedure, we can pass parameters . But in inline query we can't pass.
Thanks
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is sql analyzer?
What are commit, rollback, and savepoint?
Which type of cursor is used to execute the dml statement?
What is an implicit commit?
How many sql core licenses do I need?
how to dump a table to a file with 'mysqldump'? : Sql dba
What is time based sql injection?
What are the different sql commands?
What are the different dml commands in sql?
What is meaning of <> in sql?
how to use case expression? : Sql dba
what is the use of double ampersand (&&) in sql queries?
What is the difference between left outer join and left join?
how to create a new table in mysql? : Sql dba
what are the authentication modes in sql server? How can it be changed? : Sql dba