没有合适的资源?快使用搜索试试~ 我知道了~
首页Inside Microsoft SQL Server 2008 T-SQL Programming.pdf
Inside Microsoft SQL Server 2008 T-SQL Programming.pdf

详细深入的讲解了SQLServer2008的各个部分,如果你想了解SQLServer2008的底层机制,那么这本书不会让你失望!
资源详情
资源评论
资源推荐


PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
Copyright © 2010 by Itzik Ben-Gan, Dejan Sarka, Ed Katibah, Greg Low, Roger Wolter, and Isaac Kunen
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means
without the written permission of the publisher.
Library of Congress Control Number: 2009932820
Printed and bound in the United States of America.
1 2 3 4 5 6 7 8 9 QWT 4 3 2 1 0 9
Distributed in Canada by H.B. Fenn and Company Ltd.
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For further information about
international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at
fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to tkinput@microsoft.com.
Microsoft, Microsoft Press, Active Directory, BizTalk, MapPoint, MS, MultiPoint, SQL Server, Visio, Visual Basic, Visual C#,
Visual Studio and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or
other countries. Other product and company names mentioned herein may be the trademarks of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted
herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo,
person, place, or event is intended or should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is provided without any
express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will
be held liable for any damages caused or alleged to be caused either directly or indirectly by this book.
Acquisitions Editor: Ken Jones
Developmental Editor: Denise Bankaitis
Project Editor: Denise Bankaitis
Editorial Production: Ashley Schneider, S4Carlisle Publishing Services
Technical Reviewer: Steve Kass; Technical Review services provided by Content Master, a member of CM Group, Ltd.
Cover: Tom Draper Design
Body Part No. X15-74121

To my siblings, Ina & Mickey
—Itzik


v
Microsoft is interested in hearing your feedback so we can continually improve our books and learning
resources for you. To participate in a brief online survey, please visit:
www.microsoft.com/learning/booksurvey/
What do you think of this book? We want to hear from you!
Table of Contents
Foreword ..........................................................xv
Acknowledgments .................................................xvii
Introduction ............................................................xxi
1 Views...................................................1
What Are Views?......................................................1
ORDER BY in a View...................................................3
Refreshing Views .....................................................6
Modular Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Updating Views .....................................................16
View Options .......................................................20
ENCRYPTION ..................................................20
SCHEMABINDING ..............................................20
CHECK OPTION ................................................22
VIEW_METADATA ..........................................23
Indexed Views ......................................................24
Conclusion .........................................................29
2 User-Defined Functions ..................................31
Some Facts About UDFs ..............................................31
Scalar UDFs .........................................................32
T-SQL Scalar UDFs ..............................................32
Performance Issues .............................................34
UDFs Used in Constraints ........................................40
CLR Scalar UDFs ................................................43
SQL Signature ..................................................57
Table-Valued UDFs...................................................63
Inline Table-Valued UDFs ........................................64
Split Array .....................................................66
剩余831页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论11