Leverage SQL Server 2008 in Your.Net Code with Visual Studio 2008 SP1 David Sackstein John Bryce Training
Agenda Introduction Table Valued Parameters The new MERGE command Change Tracking FILESTREAM Q & A Summary
Table-Valued Parameters Efficient row-by-row operations A new type representing a table Stored commands may accept table arguments Accessible from ADO.NET 3.5
TVP Performance Time to insert 10,000 rows
DEMO Table-Valued Parameters
The MERGE command Flexible, efficient support for merging changes New SQL command supporting UPSERT and DELETE Can be combined with TVP
DEMO The MERGE Command
Change Tracking Enables synchronization between local cache and database Improved over SQL Server 2005 – No change of schema required Enabled at database and table level Recognized by the LocalCache wizard
DEMO Change Tracking
FILESTREAM A fast way to store and retrieve BLOBS Fast as NTFS Managed like data in the database Requires – Enabling at database – Secondary FileGroup with FileStream enabled Can be accessed from ADO using a stream object.
FILESTREAM Performance Throughput in MB/sec:
DEMO Streaming with FILESTREAM
Q & A
Summary Introduction Table Valued Parameters The new MERGE command Change Tracking FILESTREAM
Additional Resources What’s new in SQL Server 2008 on MSDN My
Related Sessions DEV403: A Deep Dive into LINQ Eran Sharabi 16:00 – 17:10 Galil Hall (1) LAB05: ADO.Net Entity Framework Shimon Dahan 16:00 – 17:10 Golan Hall (-1) PNL04: Data Security Nimrod Luria 14:00 – 15:00 Sharon Hall (-1)
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.