Find jobs | Company-wise jobs
Jobseekers | Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Interview Q&A Tutorials Oracle Sql server .NET Java Soft skills CV GD Work from home Online practice test FAQs in PDF Books Jobs FAQs
Interview questions                                 
SQL Server part 1
SQL Server part 2
SQL Server part 3
SQL Server part 4
SQL Server part 5
SQL Server part 6
SQL Server part 7
SQL Server part 8
SQL Server part 9
SQL Server 2008
Test your SQL Server skills!
Sql Server database maintenance
SQL Server backup
SQL Server cursor
SQL Server replication
Structured query language
SQL Server architecture
SQL Server constraints
SQL Server cursors
Data Mining
Data warehousing
SQL Server DTS
SQL Server functions
SQL Server indexes
SQL Server joins
SQL Server locks
SQL Server Net integration
SQL Server optimization
SQL Server replication
SQL reporting services
SQL service broker
SQL Server stored procedures
SQL Server table
SQL Server transactions
SQL Server transactions Architecture
SQL Server triggers
SQL Server views
SQL Server XML integration
SQL Server DDL
SQL Server DML
SQL Server DCL
SQL Server identifier
SQL Server data integrity
SQL Server accessing data
SQL Server subqueries
SQL Server cube operator
SQL Server insert data
SQL Server distributed queries
SQL Server index tuning
 

SQL Server views

NEXT>>

What are the restrictions applicable while creating views?

What are the restrictions applicable while creating views?

Answer
Views can be created referencing tables and views only in the current database.
A view name must not be the same as any table owned by that user.
You can build views on other views and on procedures that reference views.
Rules or DEFAULT definitions can't be associated with views.
Only INSTEAD OF triggers can be associated with views.
The query that defines the view cannot include the ORDER BY, COMPUTE, or COMPUTE BY clauses or the INTO keyword.
You cannot define full-text index definitions for views.
You cannot create temporary views
You cannot create views on temporary tables.

Views - Dec 1, 2008 at 18:10 pm by Rajmeet Ghai

What are the restrictions that views have to follow?

Answer

  • Since a view is a virtual table – columns of the view cannot be renamed. To change anything in the view, the view must be dropped and create again.
  • The select statement on the view cannot contain ORDER BY or INTO TEMP
  • When a table or view is dropped, any views in the same database are also dropped.
  • It is not possible to create an index on a view
  • It is not possible to use DELETE to update a view that is defined as a join.
Sql server - What are the restrictions applicable while creating views? - Feb 11, 2010 at 11:55 AM by Shuchi Gauri

What are the restrictions applicable while creating views?

Restrictions applicable while creating views:

  • A view cannot be indexed.
  • A view cannot be Altered or renamed. Its columns cannot be renamed.
  • To alter a view, it must be dropped and re-created.
  • ANSI_NULLS and QUOTED_IDENTIFIER options should be turned on to create a view.
  • All tables referenced in a view must be part of the same database.
  • Any user defined functions referenced in a view must be created with SCHEMABINDING option.
  • Cannot use ROWSET, UNION, TOP, ORDER BY, DISTINCT, COUNT(*), COMPUTE, COMPUTE BY in views.
NEXT>>

Also read

What are the restrictions applicable while creating views?

Answer - Views can be created referencing tables and views only in the current database.......

Define Distributed Query and Linked Server?

Answer - Distributed Query is a query which can retrieve data from multiple data sources including distributed data........ 

Question: Describe the XML support SQL server extends.

Answer - SQL server can return XML document using FOR XML clause......

Question: What is SQL Server English Query?

Answer - SQL Server English Query helps to build applications that can accept query.....

Question: What is the significance of NULL value and why should we avoid permitting null values?

Answer - Null means no entry has been made. It implies that the value is either unknown or undefined.....

 
Want to be hunted by potential employers? Just submit your key skills!

Popular FAQs

.NET .Net Architecture ADO.NET Java Oracle C#.NET
VB.NET DOT.NET AJAX ASP.NET NET Framework OOPS in .NET
C++ Sql Server Data warehousing EJB MySQL Linux
PHP UML Networking Testing XML  
 
Copyright © 2008 - 2010 CareerRide.com. All rights reserved.