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

More Related Content

What's hot (20)

PPTX
Database Performance Tuning
Arno Huetter
 
PPTX
Oracle Database 12c - New Features for Developers and DBAs
Alex Zaballa
 
PDF
SQL Server Tuning to Improve Database Performance
Mark Ginnebaugh
 
PDF
Performance tuning in sql server
Antonios Chatzipavlis
 
PPTX
Oracle DB Performance Tuning Tips
Asanka Dilruk
 
PDF
SQL Server Optimization Checklist
Grant Fritchey
 
PDF
Unit Testing SQL Server
Giovanni Scerra ☃
 
PPTX
Stored procedure tuning and optimization t sql
nishantdavid9
 
PPT
Sql server performance tuning and optimization
Manish Rawat
 
PPTX
Top 10 tips for Oracle performance (Updated April 2015)
Guy Harrison
 
PPTX
Oracle performance tuning_sfsf
Mao Geng
 
PPTX
High Performance Plsql
Guy Harrison
 
PPTX
Oracle Database 12c - Data Redaction
Alex Zaballa
 
PPTX
Oracle Data Redaction
Alex Zaballa
 
PDF
SQL Server Query Tuning Tips - Get it Right the First Time
Dean Richards
 
PPTX
Oracle Data Redaction - UKOUG - TECH14
Alex Zaballa
 
PPTX
Beginners guide to_optimizer
Maria Colgan
 
PPTX
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
PPTX
Web application penetration using SQLMAP.
asmitaanpat
 
PPTX
Oracle’ın parallel execution yetenekleri ve performans
Emrah METE
 
Database Performance Tuning
Arno Huetter
 
Oracle Database 12c - New Features for Developers and DBAs
Alex Zaballa
 
SQL Server Tuning to Improve Database Performance
Mark Ginnebaugh
 
Performance tuning in sql server
Antonios Chatzipavlis
 
Oracle DB Performance Tuning Tips
Asanka Dilruk
 
SQL Server Optimization Checklist
Grant Fritchey
 
Unit Testing SQL Server
Giovanni Scerra ☃
 
Stored procedure tuning and optimization t sql
nishantdavid9
 
Sql server performance tuning and optimization
Manish Rawat
 
Top 10 tips for Oracle performance (Updated April 2015)
Guy Harrison
 
Oracle performance tuning_sfsf
Mao Geng
 
High Performance Plsql
Guy Harrison
 
Oracle Database 12c - Data Redaction
Alex Zaballa
 
Oracle Data Redaction
Alex Zaballa
 
SQL Server Query Tuning Tips - Get it Right the First Time
Dean Richards
 
Oracle Data Redaction - UKOUG - TECH14
Alex Zaballa
 
Beginners guide to_optimizer
Maria Colgan
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
Alex Zaballa
 
Web application penetration using SQLMAP.
asmitaanpat
 
Oracle’ın parallel execution yetenekleri ve performans
Emrah METE
 

Viewers also liked (7)

PPTX
Microsoft sql server 2012
Taqui Wajuyat Flor
 
DOC
Top 9 t sql interview questions answers
jonhmart036
 
PPTX
TSQL Advanced Query Techniques
Gianluca Sartori
 
PDF
10 SQL Tricks that You Didn't Think Were Possible
Lukas Eder
 
PPTX
MS Sql Server: Advanced Query Concepts
DataminingTools Inc
 
PPT
Product life cycle
Vandna Dhiman
 
PPT
Software Product Life Cycle
Mahesh Panchal
 
Microsoft sql server 2012
Taqui Wajuyat Flor
 
Top 9 t sql interview questions answers
jonhmart036
 
TSQL Advanced Query Techniques
Gianluca Sartori
 
10 SQL Tricks that You Didn't Think Were Possible
Lukas Eder
 
MS Sql Server: Advanced Query Concepts
DataminingTools Inc
 
Product life cycle
Vandna Dhiman
 
Software Product Life Cycle
Mahesh Panchal
 
Ad

Similar to Advanced t sql - querying and programming inside sql server (20)

PPTX
Sql Server tips from the field
InnoTech
 
PPT
Sql Server 2008 Features
Parul Sharma
 
PPT
Supporting SQLserver
Concentrated Technology
 
PPT
Sql server ___________session 1(sql 2008)
Ehtisham Ali
 
PPTX
Sql good practices
Deepak Mehtani
 
PDF
Sql server tips from the field
JoAnna Cheshire
 
PDF
SQL Server 2008 Highlights
Intergen
 
DOCX
Sql server 2008 r2 programmability datasheet
Klaudiia Jacome
 
PPTX
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
Andrew Brust
 
PDF
Exploring sql server 2016
Antonios Chatzipavlis
 
PDF
SQL Server 2008 certification
Vskills
 
DOCX
Sql Server 2008 Product Overview
Ismail Muhammad
 
PPT
SQL Server 2008 Overview
Eric Nelson
 
PPT
What's New for Developers in SQL Server 2008?
ukdpe
 
PPTX
Managing SQLserver for the reluctant DBA
Concentrated Technology
 
PPTX
Ebook6
kaashiv1
 
PPTX
Sql interview-question-part-6
kaashiv1
 
PPTX
Sql interview-question-part-6
kaashiv1
 
PPTX
Sql interview question part 6
kaashiv1
 
PPTX
Ebook6
kaashiv1
 
Sql Server tips from the field
InnoTech
 
Sql Server 2008 Features
Parul Sharma
 
Supporting SQLserver
Concentrated Technology
 
Sql server ___________session 1(sql 2008)
Ehtisham Ali
 
Sql good practices
Deepak Mehtani
 
Sql server tips from the field
JoAnna Cheshire
 
SQL Server 2008 Highlights
Intergen
 
Sql server 2008 r2 programmability datasheet
Klaudiia Jacome
 
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
Andrew Brust
 
Exploring sql server 2016
Antonios Chatzipavlis
 
SQL Server 2008 certification
Vskills
 
Sql Server 2008 Product Overview
Ismail Muhammad
 
SQL Server 2008 Overview
Eric Nelson
 
What's New for Developers in SQL Server 2008?
ukdpe
 
Managing SQLserver for the reluctant DBA
Concentrated Technology
 
Ebook6
kaashiv1
 
Sql interview-question-part-6
kaashiv1
 
Sql interview-question-part-6
kaashiv1
 
Sql interview question part 6
kaashiv1
 
Ebook6
kaashiv1
 
Ad

More from Vinod Kumar (6)

PPTX
Backup beyond just a strategy with SQL Server
Vinod Kumar
 
PPT
Choosing a concurrency model, optimistic or pessimistic
Vinod Kumar
 
PPTX
Choosing A Concurrency Model, Optimistic Or Pessimistic
Vinod Kumar
 
PPT
Sql Server Security
Vinod Kumar
 
PPT
Windows Mobile 5.0 Data Access And Storage Webcast
Vinod Kumar
 
PPT
Protecting Your Key Asset – Data Protection Best Practices V2.0 Final
Vinod Kumar
 
Backup beyond just a strategy with SQL Server
Vinod Kumar
 
Choosing a concurrency model, optimistic or pessimistic
Vinod Kumar
 
Choosing A Concurrency Model, Optimistic Or Pessimistic
Vinod Kumar
 
Sql Server Security
Vinod Kumar
 
Windows Mobile 5.0 Data Access And Storage Webcast
Vinod Kumar
 
Protecting Your Key Asset – Data Protection Best Practices V2.0 Final
Vinod Kumar
 

Recently uploaded (20)

PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PDF
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
Practical Applications of AI in Local Government
OnBoard
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 

Advanced t sql - querying and programming inside sql server

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

Editor's Notes

  • #6: 04/21/10 10:21 © 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.