Quick Check


1. 

Which constraints can become "not trusted"?

foreign key constraints and check constraints can become `not trusted.`

2. 

Can the use of foreign key constraints result in increased performance for some SELECT statements?

image from book

3. 

Can the use of triggers result in increased performance for some SELECT statements?

image from book

4. 

Which type of data integrity results in more code needing to be written: declarative data integrity or procedural data integrity?

procedural data integrity results in more code needing to be written.

Answers

1. 

Foreign key constraints and check constraints can become "not trusted."

2. 

Yes, for some SELECT statements, the use of foreign key constraints can result in increased performance. This is because the query optimizer can see the definition of the foreign key constraint and use it to optimize the produced execution plan.

3. 

No, the use of triggers will not result in increased performance for any SELECT statements. This is because triggers contain procedural code so the optimizer does not use them to optimize execution plans.

4. 

Procedural data integrity results in more code needing to be written.




MCITP Self-Paced Training Kit Exam 70-442  .Designing and Optimizing Data Access by Using Microsoft SQL Server 2005
MCITP Self-Paced Training Kit Exam 70-442 .Designing and Optimizing Data Access by Using Microsoft SQL Server 2005
ISBN: 073562383X
EAN: N/A
Year: 2007
Pages: 162

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net