What is the difference between a view and a stored procedure?
Answer / Sarvesh Kumar Prajapati
In SQL Server, a view is a virtual table based on the result-set of an SQL statement, whereas a stored procedure is a prepared SQL code that stores pre-compiled execution plans. A view does not modify data and cannot be executed like a standalone program; it simply represents the data in different formats for querying. On the other hand, a stored procedure can contain SQL statements to create, insert, update, delete or retrieve data and can accept parameters.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you explain about buffer cash and log cache in sql server?
Introduction of rollup clause using sum and group by clause?
How to locate and take substrings with charindex() and substring() functions?
last function used in MS Access to convert sql what function will use in sql
How To delete duplicate record from a particular table?
How to get a list of all tables with "sys.tables" view in ms sql server?
Explain datetimeoffset data type in sal server 2008?
What are pessimistic lock and optimistic lock?
Can an entity have two primary keys?
What is the security principal at the database level that represents your session?
What is sqlcmd?
What is the difference between implicit and explicit transaction?
1 Answers Beahead Private Limited,
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)