Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Advanced t sql - querying and programming inside sql server


Published on

This is the SQL Server Tips and Tricks sessions I did at GIDS.

Published in: Technology
  • Be the first to comment

Advanced t sql - querying and programming inside sql server

  1. 1. Advanced T-SQL Querying and Programming Inside SQL Server Vinod Kumar M Technology Evangelist – Microsoft @vinodk_sql 20 / 04 / 10
  2. 2. Session Objectives <ul><li>SQL Server is an ocean and this session will show some of the interesting feature usages with SQL Server </li></ul><ul><li>These are my explorations with SQL Server but not exhaustive </li></ul><ul><li>You will learn some of these tricks and concepts with easy examples </li></ul>
  3. 3. Common Worst Practices <ul><li>Technology for technology’s sake </li></ul><ul><ul><li>Excitement over new features instead of leveraging the right new features ( or the real benefits of them ) </li></ul></ul><ul><li>Using default options – expecting them to be ideal for all purposes </li></ul><ul><ul><li>Database creation, table creation, index creation… </li></ul></ul><ul><ul><li>Transact-SQL and stored procedure creation </li></ul></ul><ul><li>Myths, folklore and “advice” from limited tests (the wrong solution for the wrong problem) </li></ul><ul><li>Lack of database maintenance </li></ul><ul><ul><li>Fragmentation, statistics, disaster recovery… </li></ul></ul>
  4. 4. Agenda !!! <ul><li>Introduction </li></ul><ul><ul><li>T-SQL with SQL Server 2008 </li></ul></ul><ul><li>Demo, Demo and more Demo’s </li></ul>
  5. 5. T-SQL Enhancements in SQL Server 2008
  6. 6. Techniques, Tips & Tricks As time permits… SELECT 'Mostly Code';
  7. 7. Techniques, Tips & Tricks As time permits… <ul><li>0. Wake Up time  </li></ul><ul><li>1. Uniqueness with Multiple NULLs </li></ul><ul><li>2. Sort Strings with Separated Values </li></ul><ul><li>3. Date and Time Calculations </li></ul><ul><li>4. Custom Sequence </li></ul><ul><li>5. String defaults </li></ul><ul><li>6. Row Numbers with no Ordering </li></ul><ul><li>7. Recompiling at Statement Level </li></ul>
  8. 8. Summary !!! <ul><li>Keep an eye on different modes of operations and new features introduced. </li></ul><ul><li>There are many more that we couldn’t cover this time inside each of these </li></ul><ul><li>Keep exploring different ways to work with SQL Server and it will be fun !!! </li></ul>
  9. 9. Q&A <ul><li> </li></ul><ul><li> </li></ul><ul><li>@vinodk_sql </li></ul>