SQL 2012 includes several new features for SQL developers including contained databases, columnstore indexes, sequence objects, data paging improvements, and new analytic functions like LEAD() and LAG(). It also enhances Transact-SQL with new conversion, date/time and logical functions and improves metadata discovery and error handling. Visual Studio integration is also improved with tighter management studio integration.
Columnar Table Performance Enhancements Of Greenplum Database with Block Meta...Ontico
HighLoad++ 2017
Зал «Рио-де-Жанейро», 7 ноября, 13:00
Тезисы:
http://www.highload.ru/2017/abstracts/2923.html
Alibaba built up a data warehouse service named HybridDB in its public cloud service, based on the open sourced Greenplum Database. And it keeps on enhancing HybridDB's preformance. This presentation will talk about how Alibaba improves HybridDB's performance for columnar tables with data block's meta data (MIN/MAX values of block data) and sort keys (pre-defined keys that data will be sorted and stored with). Testing result shows that, block metadata can be generated on-the-fly without much overhead, but can achive better performance even than index scan. With sort keys, a constant response time can be archived for GROUP-BY and ORDER-BY queries.
(ATS6-DEV01) What’s new for Protocol and Component Developers in AEP 9.0BIOVIA
This will focus on new features that are now available to protocol and component developers in the new version of AEP. This will include discussions of improvements to hierarchical data records and XML reading and writing, new parameter subprotocol promotion behavior, new component icons, parameter metadata, easier to access Job Pooling settings, Pilotscript updates, Hashmap improvements, Unicode reading improvements, and other improvements to protocol development.
AlwaysOn Availability Group Job ManagementKen Wilson
So you’ve built out your AlwaysOn Availability Group, tested it and it is ready for production. Great! Now, how do you handle all those database dependent SQL Agent jobs? As with many things regarding SQL Server there are many ways to handle the failover of these jobs and in this session we will discuss a few ways to handle automatic failover of SQL Server Agent jobs and the pros and cons of each.
Before you optimize: Understanding Execution PlansTimothy Corey
You know what your query does, but do you know how it does it? Do you know what type of resources your query uses? This session covered these questions and more as we walked through reading execution plans. We saw how SQL breaks down the execution of your query and what each step tells us about the overall query. These slides provide the additional resources that go into the depth we couldn't get into in the session.
Columnar Table Performance Enhancements Of Greenplum Database with Block Meta...Ontico
HighLoad++ 2017
Зал «Рио-де-Жанейро», 7 ноября, 13:00
Тезисы:
http://www.highload.ru/2017/abstracts/2923.html
Alibaba built up a data warehouse service named HybridDB in its public cloud service, based on the open sourced Greenplum Database. And it keeps on enhancing HybridDB's preformance. This presentation will talk about how Alibaba improves HybridDB's performance for columnar tables with data block's meta data (MIN/MAX values of block data) and sort keys (pre-defined keys that data will be sorted and stored with). Testing result shows that, block metadata can be generated on-the-fly without much overhead, but can achive better performance even than index scan. With sort keys, a constant response time can be archived for GROUP-BY and ORDER-BY queries.
(ATS6-DEV01) What’s new for Protocol and Component Developers in AEP 9.0BIOVIA
This will focus on new features that are now available to protocol and component developers in the new version of AEP. This will include discussions of improvements to hierarchical data records and XML reading and writing, new parameter subprotocol promotion behavior, new component icons, parameter metadata, easier to access Job Pooling settings, Pilotscript updates, Hashmap improvements, Unicode reading improvements, and other improvements to protocol development.
AlwaysOn Availability Group Job ManagementKen Wilson
So you’ve built out your AlwaysOn Availability Group, tested it and it is ready for production. Great! Now, how do you handle all those database dependent SQL Agent jobs? As with many things regarding SQL Server there are many ways to handle the failover of these jobs and in this session we will discuss a few ways to handle automatic failover of SQL Server Agent jobs and the pros and cons of each.
Before you optimize: Understanding Execution PlansTimothy Corey
You know what your query does, but do you know how it does it? Do you know what type of resources your query uses? This session covered these questions and more as we walked through reading execution plans. We saw how SQL breaks down the execution of your query and what each step tells us about the overall query. These slides provide the additional resources that go into the depth we couldn't get into in the session.
Distributed Model Validation with EpsilonSina Madani
Scalable performance is a major challenge with current model management tools. As the size and complexity of models and model management programs increases and the cost of computing falls, one solution for improving performance of model management programs is to perform computations on multiple computers. The developed prototype demonstrates a low-overhead data-parallel approach for distributed model validation in the context of an OCL-like language. The approach minimises communication costs by exploiting the deterministic structure of programs and can take advantage of multiple cores on each (heterogenous) machine with highly configurable computational granularity. Performance evaluation shows linear improvements with more machines and processor cores, being up to 340x faster than the baseline sequential program with 88 computers.
Grokking TechTalk #16: Html js and three way bindingGrokking VN
Speaker: Nhan Nguyen - Software Architect @ FPT IS
Bio: Author of HtmlJs Be fluent in C# and JavaScript. Software architect at FPT IS
Description:
Kiến trúc của HtmlJs
Cách thiết kế web app với HtmlJs
Demo (code 1 số app đơn giản + performance demo)
Mô hình lập trình three-way binding (điểm mới so với buổi trước)
Special features of Entity Framework Core like logging, query tags, DbContext pools, shadow properties, model-level query filters, mapping to fields, table splitting, and more - including Cosmos DB provider with EF Core 3.0
LINQ stands for Language Integrated Query.
A query is an expression that retrieves data from a data source or database.
Retrieve data from different data source like an object collection, sql server database, xml & web service etc.
LINQ Syntax like- var students = dbContext.Students.ToList();
The technology has almost written off MySQL as a database for new fancy NoSQL databases like MongoDB and Cassandra or even Hadoop for aggregation. But MySQL has a lot to offer in terms of 'ACID'ity, performance and simplicity. For many use-cases MySQL works well. In this week's ShareThis workshop we discuss different tips & techniques to improve performance and extend the lifetime of your MySQL deployment.
Windowing functions session for Slovak SQL Pass & BIAndrej Zafka
I wil show how to understand OVER() and PARTITION BY in TSQL, examples and benefits of windowing functions – managing heavy aggregations, de-duplicating data, running totals, paging and data islands. See what is behind “set theory” of windowing functions.
SQL Server Reporting Services (SSRS) is an easy-to-use tool for automating reports and creating highly visual dashboards. Although SSRS is easy to learn there are many tips and tricks that can improve your report building experience, not to mention make your reports run blazing fast!
This rapid-fire session goes over my learnings from the past six years of developing high performance SSRS reports, including topics like multivalue parameter efficiencies, how to best utilize subreports, and performing SQL CRUD operations with SSRS.
New features in C# 8 including nullable reference types, async streams, switch expressions, ranges, default interface members, enhanced pattern matching
Our database experts, Rajnikant Tandel and Anup Gopinathan, will show you how to identify and fine tune your problem queries to make a significant impact on the overall performance of your database.
DBAs vs Developers - JSON in SQL ServerBert Wagner
The war between DBAs and developers has been raging since the dawn of relational databases. One reason for disagreement comes from developers who want to store their data in JSON because it is fast, standard, and flexible. DBAs cringe when they hear of long text strings being stored in their SQL databases; they cry with concern, “No data validation? No schema binding?”. Is there any hope for these two warring factions to see eye-to-eye?
This session will explore the new JSON functionality introduced in SQL Server 2016. We will use T-SQL examples to learn how these functions can be used to parse, create, and modify JSON data. More importantly, we will discuss how to optimize performance when using these functions.
By the end of this session DBAs and developers will know how to efficiently work with JSON in SQL Server 2016 and 2017. It will also usher in an era of peace between DBAs and developers…
… at least until someone brings up the topics of cursors, NOLOCKs, or Entity Framework.
Distributed Model Validation with EpsilonSina Madani
Scalable performance is a major challenge with current model management tools. As the size and complexity of models and model management programs increases and the cost of computing falls, one solution for improving performance of model management programs is to perform computations on multiple computers. The developed prototype demonstrates a low-overhead data-parallel approach for distributed model validation in the context of an OCL-like language. The approach minimises communication costs by exploiting the deterministic structure of programs and can take advantage of multiple cores on each (heterogenous) machine with highly configurable computational granularity. Performance evaluation shows linear improvements with more machines and processor cores, being up to 340x faster than the baseline sequential program with 88 computers.
Grokking TechTalk #16: Html js and three way bindingGrokking VN
Speaker: Nhan Nguyen - Software Architect @ FPT IS
Bio: Author of HtmlJs Be fluent in C# and JavaScript. Software architect at FPT IS
Description:
Kiến trúc của HtmlJs
Cách thiết kế web app với HtmlJs
Demo (code 1 số app đơn giản + performance demo)
Mô hình lập trình three-way binding (điểm mới so với buổi trước)
Special features of Entity Framework Core like logging, query tags, DbContext pools, shadow properties, model-level query filters, mapping to fields, table splitting, and more - including Cosmos DB provider with EF Core 3.0
LINQ stands for Language Integrated Query.
A query is an expression that retrieves data from a data source or database.
Retrieve data from different data source like an object collection, sql server database, xml & web service etc.
LINQ Syntax like- var students = dbContext.Students.ToList();
The technology has almost written off MySQL as a database for new fancy NoSQL databases like MongoDB and Cassandra or even Hadoop for aggregation. But MySQL has a lot to offer in terms of 'ACID'ity, performance and simplicity. For many use-cases MySQL works well. In this week's ShareThis workshop we discuss different tips & techniques to improve performance and extend the lifetime of your MySQL deployment.
Windowing functions session for Slovak SQL Pass & BIAndrej Zafka
I wil show how to understand OVER() and PARTITION BY in TSQL, examples and benefits of windowing functions – managing heavy aggregations, de-duplicating data, running totals, paging and data islands. See what is behind “set theory” of windowing functions.
SQL Server Reporting Services (SSRS) is an easy-to-use tool for automating reports and creating highly visual dashboards. Although SSRS is easy to learn there are many tips and tricks that can improve your report building experience, not to mention make your reports run blazing fast!
This rapid-fire session goes over my learnings from the past six years of developing high performance SSRS reports, including topics like multivalue parameter efficiencies, how to best utilize subreports, and performing SQL CRUD operations with SSRS.
New features in C# 8 including nullable reference types, async streams, switch expressions, ranges, default interface members, enhanced pattern matching
Our database experts, Rajnikant Tandel and Anup Gopinathan, will show you how to identify and fine tune your problem queries to make a significant impact on the overall performance of your database.
DBAs vs Developers - JSON in SQL ServerBert Wagner
The war between DBAs and developers has been raging since the dawn of relational databases. One reason for disagreement comes from developers who want to store their data in JSON because it is fast, standard, and flexible. DBAs cringe when they hear of long text strings being stored in their SQL databases; they cry with concern, “No data validation? No schema binding?”. Is there any hope for these two warring factions to see eye-to-eye?
This session will explore the new JSON functionality introduced in SQL Server 2016. We will use T-SQL examples to learn how these functions can be used to parse, create, and modify JSON data. More importantly, we will discuss how to optimize performance when using these functions.
By the end of this session DBAs and developers will know how to efficiently work with JSON in SQL Server 2016 and 2017. It will also usher in an era of peace between DBAs and developers…
… at least until someone brings up the topics of cursors, NOLOCKs, or Entity Framework.
With the introduction of SQL Server 2012 data developers have new ways to interact with their databases. This session will review the powerful new analytic windows functions, new ways to generate numeric sequences and new ways to page the results of our queries. Other features that will be discussed are improvements in error handling and new parsing and concatenating features.
oracle plsql training | oracle online training | oracle plsql demo | oracle p...Nancy Thomas
Website : http://www.todaycourses.com
PL/SQL fundamentals
Declaring and anchoring variables to database definitions
Flow control constructs
Oracle 11g and 12c PL/SQL features
PL/Scope in Oracle 11g
Returning implicit cursor results from stored procedures in Oracle 12c
Declaring local functions within SELECT statements in Oracle 12c
Data Manipulation Techniques
Maintaining data with DML statements
Employing the RETURNING INTO clause
Solving the fetch-across-commit problem
Managing data retrieval with cursors
Implications of explicit and implicit cursors
Simplifying cursor processing with cursor FOR LOOPs
Embedding cursor expressions in SELECT statements
oracle plsql training, oracle online training, oracle pl-sql demo, oracle pl sql tutorials, oracle pl sql videos, oracle pl/sql training, oracle pl/sql training courses, oracle pl sql training videos, sql (programming language), oracle pl sql functions, oracle pl\/sql demo, oracle pl sql certification training, oracle pl\/sql training videos, oracle pl\/sql videos, oracle pl sql training material ppt, oracle 11g training videos, oracle database training, oracle online classes, dbms
Watch the full webinar at: http://embt.co/1pb4Zb4
This presentation is a must-see for anyone interested in Oracle 12! Dan is an Oracle ACE Director and has assembled this presentation with fresh and inside information from Oracle Corp and OOW13. Dan has pulled his top Oracle 12 features from the plethora of new features available and documented in his user group presentations "Oracle 12c New Features for Developers" and "Oracle 12c New Features for DBA's".
Top 10 features will include:
New SQL Syntax
New SQL and PL/SQL Limits
Pluggable Database
New Packages
Deprecated Features
New SQL Tuning Features
This presentation covers new SQL & PL/SQL syntax and options, the container DB of course, new SQL optimizer features, deprecated features, hints, and more. If you're supporting applications, then you won't want to miss this webinar!
Ten query tuning techniques every SQL Server programmer should knowKevin Kline
From the noted database expert and author of 'SQL in a Nutshell' - SELECT statements have a reputation for being very easy to write, but hard to write very well. This session will take you through ten of the most problematic patterns and anti-patterns when writing queries and how to deal with them all. Loaded with live demonstrations and useful techniques, this session will teach you how to take your SQL Server queries mundane to masterful.
This presentation explains all of the new features that are relevant for developers in Oracle 12c. It's been out for a couple of years, but many companies haven't updated to 12c. So, if you're looking to update soon, or are just interested in what the new features are, look at this presentation.
The full post is available at http://www.completeitprofessional.com/oracle-12c-new-features-for-developers
DevOps is changing today's software development world by helping us build better software, faster. However most of the knowledge and experience with DevOps is based around application software and ignores the database. We will examine how the concepts and principles of DevOps can be applied to database development by looking at both automated comparison analysis as well as migration script management. Automated building, testing, and deployment of database changes will be shown.
About the Presenter
Steve Jones is a Microsoft SQL Server MVP and has been working with SQL Server since version 4.2 on OS/2. After working as a DBA and developer for a variety of companies, Steve co-founded the community website SQLServerCentral.com in 2001. Since 2004, Steve has been the full-time editor of the site, ensuring it continues to be a great resource for SQL Server professionals. Over the last decade, Steve has written hundreds of articles about SQL Server for SQLServerCentral.com, SQL Server Standard magazine, SQL Server Magazine, and Database Journal.
hbaseconasia2019 Phoenix Improvements and Practices on Cloud HBase at AlibabaMichael Stack
Yun Zhang
Track 2: Ecology and Solutions
https://open.mi.com/conference/hbasecon-asia-2019
THE COMMUNITY EVENT FOR APACHE HBASE™
July 20th, 2019 - Sheraton Hotel, Beijing, China
https://hbase.apache.org/hbaseconasia-2019/
Technical Introduction to PostgreSQL and PPASAshnikbiz
Let's take a look at:
PostgreSQL and buzz it has created
Architecture
Oracle Compatibility
Performance Feature
Security Features
High Availability Features
DBA Tools
User Stories
What’s coming up in v9.3
How to start adopting
Similar to Exciting Features for SQL Devs in SQL 2012 (20)
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
2. About Me
• Brij Bhushan Mishra
• Microsoft ASP.NET/IIS MVP
• Former CodeProject MVP
• Blogger/Author/Speaker
• http://brijbhushan.net
• @brij_bhushan
• brij.mishra@outlook.com
3. SQL-2012 Enticing features
• Contained database
• Always On
• Column Store Indexes
• Visual Studio integration with Management Studio
• TSQL Enhancements
4. Row Store
• Relational Data is stored as row wise which further gets
stored in page with page size 8KB in HardDisk as
Row Store
Column 1 Column 2 Column 3 Column 4 Column 5 Column 1 Column 2 Column 3 Column 4 Column 5
Page 1 Page 2
Column 1
Hits multiple rows to fetch the data
5. Columnstore index
• Pages stores column data and Columns are heavily
compressed
Column 1 Column 1 Column 4 Column 4
Page 2Page 1
• Removes redundancy and provide faster search
Limitations
• 1 Table can have only one 1 Columnstore index
• After creating Columnstore index table cannot be updated
6. TSQL Enhancement
• Sequence Objects
• Data Paging
• Error handling
• Exec Procs with Result Set
• Metadata discovery
• Logical functions and String Functions
• Conversion functions
• Date Time functions
• Analytic Functions LEAD() and LAG()
7. Sequence Objects
• A user defined object that returns a sequence of numeric
values
• Similar is available with Oracle
• Unique to database, not to a Table (Not like Identity
Column)
• Can be used anywhere not specific to a Table
• Does not support Transaction
Parameters
Type (Integer) MAXVALUE
START WITH <constant> CYCLE | NO CYCLE
INCREMENT BY <constant> CACHE <constant> | NO CACHE
MINVALUE
DEMO
8. Data Paging
• One of the most used features in Applications
• Most of the application implements Paging at Application
level (not a database level)
• Currently for Database level Paging
• Retrieve data using ROW_NUMBER function
• Temp Tables
• Other options..
• SQL 2012 simplified this
• Need to set the offset command
• The number of Rows that required to be fetched by using “FETCH”
command
DEMO
9. Error handling
• SQL Server 2005 introduced try/catch (But throw was
missing)
• But to send the error to client, required to use
RAISEERROR
• Throw is added (similar like C# or vb.NET)
• Now do not required to add a entry in Sys.Messages table
• The original exception is sent to the Client.
DEMO
10. EXEC Stored Proc with Result Sets
• Can specify a new option with the EXECUTE statement
as
EXECUTE <proc> WITH <result_set_option>
• Allows to change the column names and data types in
Result Sets
DEMO
11. Metadata Discovery
• Earlier we used SET FMTONLY ON that is used to return
the metadata only (Not the actual data)
• Very helpful, in scenarios where we cannot predict the
result set.
• Two new Proc and equivalent DMV introduced
• sp_describe_first_result_set
• sp_describe_undeclared_parameters
• sys.dm_exec_describe_first_result_set
• sys.dm_exec_describe_first_result_set_for_object
DEMO
12. Logical and String Functions
• IIF
• Takes a boolean expression and returns one of the two given values.
• Shorthand of Case expression
• Can be nested upto 10 levels
• CHOOSE
• Returns a value from the list based on the provided Index
• If does not find then returns null
• DataType is returned based on the precedence
• FORMAT
• FORMAT function for locale-aware formatting of date/time and
number values as strings
• CONCAT
• Concatenates two or more strings
13. Conversion Functions
• PARSE
• Parse a string and try to convert in provided data type.
• Uses the .NET CLR
• Raise an error if not able to convert it
• TRY_PARSE
• Similar to parse but returns null if unable to parse
• Also uses the .NET CLR
• TRY_CONVERT
• Similar to Convert but returns null if unable to parse
DEMO
15. Analytic function Lead() and Lag()
• LAG() – Access the data in the previous row from the
same result set without self join
• Parameters
• scalar_expression
• Offset
• Default
• Over([partition_by_clause] order_by_clause) *
• Lead() - Access the data in the subsequent row from the
same result se
• scalar_expression
• Offset
• Default
• Over([partition_by_clause] order_by_clause) *.