CHECKDB (Part 3): What does CHECKDB really do? (2 of 4)
In the previous post of this series, I covered the system table checks that have to be done before anything else can be checked by CHECKDB. Now that I've described pages, extents, IAM chains/allocation...
View ArticleCan't I ever get a guarantee?
I've been sitting and thinking a lot about guarantees this morning while drinking coffee in the debilitating heat here (85 degrees at 11am) and things get more complicated the more I think about it, so...
View ArticlePoking about with DBCC PAGE (Part 1 of ?)
(It's been a while since I last posted - summer fun's been in the way obviously and I've been busy picking up some new and exciting (for me) SQL skills, partially to help with four upcoming TechEds...
View ArticleDon't try this at home kids... (data recovery using DBCC PAGE)
Time to cough up a real-life data recovery scenario to temporarily stop those people who badger me relentlessly for scenarios...We have a situation currently with a customer who managed to delete all...
View ArticleImproved Query Performance with Compatibility Level 130 in Azure SQL Database
Improved Query Performance with Compatibility Level 130 in Azure SQL Database Azure SQL Database is running transparently hundreds of thousands of databases at many different Compatibility Levels,...
View ArticleQuery Optimizer Additions in SQL Server 2016
In SQL Server 2016 we have introduced a number of new Query Optimizer improvements. This article summarizes some them and explains you can leverage the benefits of the new enhancements. Expect deep...
View ArticleIn-Memory OLTP Performance Demo Available for Download
In-Memory OLTP is a performance feature available in SQL Server (since 2014) and Azure SQL Database (currently in preview). With the memory-optimized tables, memory-optimized table types, and natively...
View ArticleEncapsulate JSON parsing with inline table value functions
If you are storing JSON fields in SQL Server 2016 or Azure SQL Database, you would probably need to use OPENJSON to parse JSON and extract fields. As an example, in new SQL Server 2016...
View ArticleHandling inheritance with JSON
JSON in SQL Server 2016 and Azure SQL Database enables you to handle custom fields and inheritance. As an example, imagine People/Employee/Salespeople structure where Employee is a kind of Person, and...
View ArticleAppending JSON arrays using JSON_MODIFY function
Sql Server 2016 and Azure Sql Database enables you to easily modify JSON object and arrays. JSON_MODIFY updates the value of a property in a JSON string and returns the updated JSON string. Here I will...
View ArticleIoT code sample – loading messages from Event Hub into Azure SQL Database
Paolo Salvatori created an example that simulates an Internet of Things (IoT) scenario where thousands of devices send events (e.g. sensor readings) to a backend system via a message broker. The...
View ArticleAnnouncing availability of SQL Server 2014 Express Docker image
We are excited to announce the public availability of the sql server 2014 express Docker image for Windows Server Core based Containers! The public repo is hosted on Docker Hub and contains the latest...
View ArticleIoT Smart Grid code sample
This code sample simulates an IoT Smart Grid scenario where multiple IoT power meters are constantly sending measurements to a SQL Server 2016 in-memory database. The sample is leveraging the following...
View ArticleIncreased Memory Size for In-Memory OLTP in SQL Server 2016
We are happy to announce that SQL Server 2016 removes the size limitation on user data in memory-optimized tables. You can grow your memory-optimized tables as large as you like as long as you have...
View ArticleColumnstore Index vs BTree index
In earlier blog why columnstore index, we had discussed what is a columnstore index and why do we need it. The columnstore storage model in SQL Server 2016 comes in two flavors; Clustered Columnstore...
View ArticleColumnstore Index: Differences between Clustered/Nonclustered Columnstore Index
SQL Server 2016 provides two flavors of columnstore index; clustered (CCI) and nonclustered (NCCI) columnstore index. As shown in the simplified picture below, both indexes are organized as columns but...
View ArticleColumnstore Index: Parallel load into clustered columnstore index from...
SQL Server has supported parallel data load into a table using BCP, Bulk Insert and SSIS. The picture below shows a typical configuration of a Data Warehouse where data is loaded from external files...
View ArticleJSON is Generally available in Azure Sql Database!
JSON functionalities are now generally available in Azure Sql Database! All functions that are available in SQL Server 2016 are also available in Azure Sql Database. Azure Sql Database enables you to...
View ArticleImplementing Product Catalogs in SQL Server and Azure SQL database
Product catalog is one of the key scenarios in NoSQL systems. In product catalog scenario, you need to store different types of products with different properties (e.g. phones have memory and CPU...
View ArticleSQL Server 2016 – It Just Runs Faster: Always On Availability Groups...
When we released Always On Availability Groups in SQL Server 2012 as a new and powerful way to achieve high availability, hardware environments included NUMA machines with low-end multi-core processors...
View Article