Answer Posted / ruchi
A view is a virtual table that consists of columns from one
or more tables. Though it is similar to a table, it is
stored in the database. It is a query stored as an object.
Hence, a view is an object that derives its data from one or
more tables. These tables are referred to as base or
underlying tables.
Once you have defined a view, you can reference it like any
other table in a database.
CREATE VIEW view_name
[(column_name[,column_name]….)]
[WITH ENCRYPTION]
AS select_statement [WITH CHECK OPTION]
Where:
A stored procedure is nothing more than prepared SQL code
that you save so you can reuse the code over and over again.
So if you think about a query that you write over and over
again, instead of having to write that query each time you
would save it as a stored procedure and then just call the
stored procedure to execute the SQL code that you saved as
part of the stored procedure.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What are the objects of ado.net?
What are typed and untyped dataset?
What are the disadvantages of using datalist?
Why is stored procedure used in ado.net?
Do we use stored procedure in ADO.Net?
What is the difference between Optimistic and Pessimistic locking?
What are the advantages and drawbacks of using ado.net?
Is entity framework better than ado.net?
Which is faster ado.net or linq?
Which control of the BindingNavigator returns the current position within the data source?
Explain advantages of ado.net?
What is the use of sqldatareader class?
How can you identify whether or not any changes are made to the DataSet object since it was last loaded?
How do you implement locking concept for dataset?
What is ado net stands for?