Problems displaying this newsletter? View online.
Database Weekly
The Complete Weekly Roundup of SQL Server News by SQLServerCentral.com
Hand-picked content to sharpen your professional edge
Editorial
 

Holiday Fun for Your Career

It's the last month of the year, and that results in plenty of "advent" items. I saw Tomaž Kaštrun start an Advent of Spark series and Denny Cherry is working on his advent of whiskey. Many people partake in other advent calendars, marking the days until Christmas. If you are looking for a fun gift for next year, consider an advent calendar of some sort for someone close to you.

When I saw Tomaž' posts, it got me thinking about the Advent of Code, which has been going on for a number of years. I've participated a few times, and last year tried to work through puzzles during the year. I failed miserably, which saddened me, but I decided to give it a try again this year. At least for a few days.

You can log in to track your progress and view the various puzzles that are available. Then try to solve them in your programming language of choice. I've watched Wayne Sheffield solve them in the past, usually with better T-SQL solutions than I come up with. Others have as well, blogging about their thoughts and solutions. To me, this is a fun way to get away from work, but also build some skills you'd use at work.

Spending time on puzzles like this is a good way to exercise your brain, while building practical skills. For example, the first puzzle this year asks you to look at a series of numbers and count how often there is an increase in the number from the previous one. In this case, we have a submarine with depth measurements, but really this is a query issue. The input is a series of text values, so you need to load those into SQL Server. Can't cut and paste them, right? Or can you? There are likely some interesting ETL solutions to load the data, as well as some creative ways to calculate the answer.

If you get stuck, there is a Reddit for the solutions, but try not to look. It is fun to browse the way people solve this in various languages, and I'm always amazed by some of the programming talent out there. The people who build visualizations are especially impressive.

Take a few minutes when you have a break and try to solve the first puzzle. Use T-SQL, PowerShell, Python, C, Pascal, Java, Rust, or whatever strikes you. It's a fun few minutes that will remind many of you why we enjoy this business. And bonus points if you blog about your work. That's an interesting set of posts that might intrigue the next person who runs across your resume or CV.

Steve Jones - SSC Editor

Join the debate, and respond to the editorial on the forums

 
The Weekly News
All the headlines and interesting SQL Server information that we've collected over the past week, and sometimes even a few repeats if we think they fit.
Vendors/3rd Party Products

Did you know SQL Monitor supports Azure databases, too?

SQL Monitor allows you to bring your whole estate into a single monitoring landscape that has a consistent interface, whether you have an all-Azure environment, or, more likely, a mixed database environment. Find out more, here!

Why cloud and hybrid estates are important - but bring complexity

With 92% of organizations now reported to be multi-cloud, a well thought-out approach to cloud migration is imperative. Download our final insights report in this series on database monitoring to find out how 2500+ of your peers are dealing with the challenge.

Exploring Auto-fix in SQL Code Analysis

Phil Factor presents a useful but slightly flawed 'table report' script as an adventure playground for exploring SQL Code analysis issues. He demonstrates use of the auto-fix feature, to arrive at a pristine script free from wavy green underlines.

Using Flyway Teams with SQL Change Automation PowerShell Cmdlets

Use Flyway to run your database migrations, each time automatically creating a SQL Change Automation release object to provide object-level scripts and a build script for the new version, along with change reports and code analysis reports.

AI/Machine Learning/Cognitive Services

Why Artificial Intelligence is Key to Community-Driven Threat Intelligence

From IT Pro - Microsoft Windows Information, Solutions, Tools

Date: Thursday, February 17th, 2022 Time: 11:00 AM Eastern Standard Time Duration: 1 hour Community-driven threat intelligence is all about the collection of network information from a myriad of sources, open and...

Administration of SQL Server

Demystifying Dumps: Stalled Dispatcher

If you’ve been following with the series of demystifying dumps then you’re probably thinking or have thought something along the lines of, “All of these issues seem to be around stalled or non-yielding things…” and you’d be correct. If you revisit the non-yielding scheduler dump post, I explain a little about cooperative scheduling and how things need to place nice, if one piece isn’t playing nice by doing its part in a timely manner or not giving up time to others, that’s going to be a very large problem for the system in general.

Checking tempdb Usage

From Callihan Data

The tempdb database in SQL Server holds a little b...

How to detect if the guest account is disabled

A common SQL Server Security check is to identify if the guest id is enabled.

Hate for Heaps

From Callihan Data

Heaps get a bad rap but is it justified? Most of the time, I’d say the answer is “yes.” Let’s dive into some heap scenarios. What is a Heap?...

Don't Neglect Patch Management Best Practices

From IT Pro - Microsoft Windows Information, Solutions, Tools

Patch management best practices work only when you apply them.

Transfer error messages between SQL Server instances using SSDT 2017

From SQLShack

This is the fourth article in the series of Migrating SQL Server Objects using SSDT 2017. In the third article, we learned how we could transfer SQL logins between...

How to detect if the guest account is disabled

From SQLServer-DBA.Com

Regular scans to find enabled guest ids lead to questions of identifying the status

Hiding Email with a Dynamic Data Masking Function–#SQLNewBlogger

From SQLServerCentral Blogs

Another post for me that is simple and hopefully serves as an example for people trying to get blogging as #SQLNewBloggers. Dynamic Data Masking is a feature that provides... The...

Query Store and hints: More Powerful than ever

From Simple Talk

I need to confess: I’m proud of the article Query Store and Parameterization Problems I wrote. Today it’s no news at all (although some people may not know the details...

Azure Databricks, Spark and Snowflake

Advent of 2021, Day 3 – Getting around CLI and WEB UI in Apache Spark

From TomazTsql

Series of Apache Spark posts: Dec 01: What is Apache Spark Dec 02: Installing Apache Spark Today, we will get familiarised with Apache Spark CLI and Web UI. Assuming, that...

Advent of 2021, Day 1 – What is Apache Spark?

From TomazTsql

Apache Spark is an open-source unified analytics engine for large-scale data processing. It provides an interface for programming entire clusters with implicit data parallelism and fault tolerance. Originally it...

How (and Why) to Move from Spark on YARN to Kubernetes

Apache Spark is among the most usable open-source distributed computing frameworks because it allows data engineers to parallelize the processing of large amounts of data across a cluster of machines.

Azure SQL Database

BCP for import and export data in Azure SQL Database

From SQLShack

The Bulk Copy Program (BCP) utility can move bulk data between SQL Server instances. You can export SQL Server data into BCP files. You can also use them for...

How to restore an Azure SQL Database

From SQLShack

I will explain how to restore an Azure SQL database in case you need to recover some data, or somebody has deleted your database in this article. Databases restore...

Determine correct Azure SQL DB SKU before migrating on premise SQL Server database

From MSSQL Tips

In this article we look at how to use the SQL Server Migration Assistant tool to get sizing recommendations for an on-premises to Azure SQL Database migration.

Migrate encrypted columns data from on-premises to Azure SQL Database

From SQLShack

Azure SQL Database is a cloud database hosted on Microsoft’s Azure platform. It is an enterprise-grade database service that supports a wide range of advanced features, and it can...

Azure Synapse (SQL Data Warehouse and Data Lake)

Azure Synapse Analytics November 2021 Update

Welcome to the November 2021 update for Azure Synapse Analytics! As we reach the end the end of 2021, we're excited show you all the new things that are now available for you.

Career Growth and Certifications

Who’s Hiring in the Database Community? December 2021 Edition

From Brent Ozar Unlimited

Is your company hiring for a database position as ...

Are You Underpaid? Let’s Find Out: The Data Professional Salary Survey is Open.

From Brent Ozar Unlimited

We’re data people, you and I. We make better decisions when we work off data instead of feelings. It’s time for our annual salary survey to find out what...

Revisiting SQL Server certification

From Simple Talk

I first touched a SQL Server instance back in 1998 during a SQL Server 6.5 course. I hadn’t planned to take the class except that the small company I...

About blogging

From SQLServerCentral Blogs

A friend wants to get started and write a blog, an...

Computing in the Cloud (Azure, Google, AWS)

SQL Server 2022: The cloud-connected database (Ep.2) | Data Exposed

From Azure SQL

Everyone is looking for hybrid solutions in today’s world. SQL Server 2022 comes with built-in capabilities to leverage the power of Azure. Come learn more about how you use...

Conferences, Classes, Events, and Webinars

Expert SSIS Training, Live and Online 17-18 Jan 2022

From AndyLeonard.blog()

I am excited to announce the next live and online delivery of Expert SSIS is 17-18 Jan 2022! Use the coupon code LimitedTimeDiscountExpertSSIS and save! Course Description Data integration is the...

[Video] Office Hours: Black Friday Edition, Ask Me Anything About SQL Server

From Brent Ozar Unlimited

Yesterday, I finished setting up my new Apple MacB...

DMO/SMO/Powershell

PowerShell Equality Comparison Operators

From It's All Just Electrons

When comparing two values in a programming or scri...

Exporting PowerShell Functions to Files

From The lonely Administrator

When I write a PowerShell module, it typically inc...

PowerShell Variables and Scope

From It's All Just Electrons

Let's talk a little bit about PowerShell variables and how long they exist within the scopes they're defined. I've encountered some behavior that for me, was unexpected. It's made...

Working with PowerShell strings

Knowing how to manipulate strings is critical in any language. In this article, Greg Moore explains working with PowerShell strings.

PowerShell Functions and Return Types

From It's All Just Electrons

As a result of some struggles trying to automate a process, I've learned some things about PowerShell. After getting to the bottom of a time-consuming problem, I thought it...

More Fun with PowerShell Enums

From Arcane Code

Introduction In a previous post, Fun with PowerShell Enums I introduced the concept of Enums. In this post we’ll dive deeper into enums, taking a look at more of its properties...

Data Mining / Data Analysis

What is Data Mining?

From Past News - RSS Feeds

As IT departments and businesses across all sectors handle larger quantities of raw data, processes have been created to turn this data into useful information. Data mining is the...

Data Mining Techniques

From Past News - RSS Feeds

Data mining is the umbrella term for the process of gathering raw data and transforming it into actionable information. Due to the dramatic growth of user-friendly data visualization tools,...

Data Privacy, Compliance, and Governance

What to Expect in 2022: Data Privacy, Data Quality, and More

From Dataversity

As 2021 begins to draw to a close, there are lesso...

Good Data Governance – My Thoughts

From Paul Andrew

A long time ago in a glaxy far far away… ?? … ...

Data Science

Doing linear regression in an online manner

From Statistical Odds & Ends

Assume we are in the linear regression context: we have i.i.d. data with and , and we want to do linear regression of on . Assume further that the...

Choosing a Statistical Test

From Curated SQL

Antoine Soetewey has a handy chart for us: Being a...

ETL/SSIS/Azure Data Factory/Biml

Mastering the Fundamentals of Azure Data Factory

From AndyLeonard.blog()

Frank and I are on Day 29 of 1,000 days, a new thing we started 02 Nov 2021 to remind us time is not fungible and we should build...

Fail activity in Azure Data Factory and Why would I want to Fail

From SQLServerCentral Blogs

(2021-Nov-30) I heard a story about a young person who was asked why she was always cutting a small piece of meat and putting it aside before cooking a larger... The...

HA/DR/Always On/Clustering

Building a pacemaker cluster to deploy a SQL Server availability group in Azure

From DBA From The Cold

There are new Ubuntu Pro 20.04 images available in the Azure marketplace with SQL Server 2019 pre-installed so I thought I’d run through how to create a three node...

Hardware

Unboxing the MacBook Pro M1 Max

From SQLBlog.org

I open up a new MacBook Pro M1 Max and note a few of my initial observations.

Western Digital Spills Beans on HDD Plans: 30TB HDDs Planned, MAMR's Future Unclear

From AnAndTech

Western Digital this week said that its energy-ass...

SMART Failure Predicted on Hard Disk: How Concerned Should You Be?

From IT Pro - Microsoft Windows Information, Solutions, Tools

Supply chain issues could affect response to 'SMART failure detected on hard disk' warnings.

MDX/DAX

MOD, QUOTIENT – DAX Guide

From Sqlbi

MOD: Returns the remainder after a number is divid...

Dynamically Compute Different Time Duration in Power BI Using DAX

From MSSQL Tips

Learn two different ways to display the difference of two time periods displayed in days, hours, minutes and seconds for Power BI reports.

DIVIDE – DAX Guide

From Sqlbi

DIVIDE: Safe divide function with the ability to handle divide by zero cases. https://dax.guide/divide/

Performance Tuning SQL Server

Blocking on Columnstore Indexes that RCSI and NOLOCK Don’t Resolve

From Erik Darling Data

I recently ran into a production issue where a SEL...

Why the Optimizer Doesn't Use Buffer Pool Knowledge

From SQLPerformance

Paul Randal describes why the optimizer doesn’t use buffer pool contents for plan generation and details the potential dangers if it did. The post Why the Optimizer Doesn't Use Buffer...

Why does FAST_FORWARD make some cursors so much faster?

From Erik Darling Data

If you’re like me, you started your database jou...

PostgreSQL

Table Inheritance in Azure Database for PostgreSQL

From SQLShack

In this article, we will learn about the concept of table inheritance, and its use in Azure Database for PostgreSQL. Introduction A database ecosystem is formed of various types...

Connecting to PostgreSQL: Learning PostgreSQL with Grant

Database professionals often work with more than one database platform. Grant Fritchey explains setting up and connecting to PostgreSQL database.

PowerPivot/PowerQuery/PowerBI

Power BI From and To Date Filtering with One Slicer

It happens that you might have two fields as From and To date (or Start and End date) in your dataset, and you want a date slicer in the report. The date slicer has to filter records in a way that the FROM and the TO dates are in the range of dates selected in the slicer.

Digging into Power BI Deployment Pipelines

From BlueGranite Blog

Power BI Deployment Pipelines are a strategic feature that allows users to better manage content across their organizations. By leveraging this powerful tool, users can simplify the deployment process...

Call any Power BI REST API with PowerShell

From Guy in a Cube

Not sure what a REST API is? Or what you can do with them in Power BI? Find out how you can easily take advantage of them without having...

(Livestream Replay) The Data God Guide to Power BI Gen2 - with Chris Wagner (Kratos BI)

From Havens Consulting

The Data God Guide to Power BI Gen2 walks through ...

Use Page Navigator to go to the NEXT LEVEL in Power BI

From Guy in a Cube

Tired of all those buttons for navigation in your Power BI reports? Patrick shows you how to use the Page Navigator to easily get going and get rid of...

THE CAPITALIZATION (UPPERCASE / LOWERCASE) OF MY TEXT DATA CHANGED IN POWER BI! WHY?

Some of you might have seen this before – you load some data into Power BI and suddenly the capitalization (uppercase / lowercase) of your text changes on you. Let me explain what is happening here.

Setting SQL Server CONTEXT_INFO In Power Query

From Chris Webb's BI Blog

In my quest to check out every last bit of obscure Power Query functionality, this week I looked into the ContextInfo option on the Sql.Database and Sql.Databases M functions....

What are those new buttons under tab order in Power BI?

From DCAC

If you’ve visited the Tab order area of the Selection Pane in Power BI in the last couple of months, you might have noticed some new buttons. The hover...

Product Reviews and Articles

A Database DevOps Workflow Using Redgate Deploy

From Product learning – Redgate Software

Tony Davis describes a typical database development cycle and deployment pipeline supported by Redgate Deploy. It allows branch-based database development, using disposable databases (clones) and version control tools, promotes...

Product Upgrades and Releases

Released: Public Preview for SQL Server Management Packs (7.0.33.0)

From MS SQL Server Blog

Updates to Management Packs for SQL Server, Report...

SQL Server IaaS Agent extension for Linux SQL VMs generally available

From Azure Updates

SQL Server IaaS Agent extension license management capabilities are now available for Ubuntu Linux virtual machines.

General availability: Audit Logs of Azure Monitor log queries

From Azure Updates

Azure Monitor logs is announcing a new capability to collect audit logs about query execution

SQL Server Diagnostic Information Queries for December 2021

From Glenn Berry

Introduction These are my SQL Server Diagnostic Information Queries for November 2021, aka my DMV Diagnostic Queries. They allow you to get a very comprehensive view of the configuration...

General availability: VPN Gateway NAT

From Azure Updates

Azure VPN Gateway NAT (Network Address Translation) can be used to connect on-premises networks or branch offices to an Azure virtual network with overlapping IP addresses.

Azure Database for PostgreSQL - Flexible Server now generally available

From Azure Updates

Use the Flexible Server deployment option allowing better control, flexibility, zone-redundant high availability, and cost optimization on Azure Database for PostgreSQL, a managed service running the open source PostgreSQL...

SSIS Framework Reports Updates

From AndyLeonard.blog()

I streamed for a little while today while the junior engineers were home playing games so my bandwidth suffered a little. I recorded it so I could share it...

Improved, Automated Vulnerability Management for Cloud Workloads with a New Amazon Inspector

From AWS News Blog

Updated November 30, 2021: Added launch partner blog links. Amazon Inspector is a service used by organizations of all sizes to automate security assessment and management at scale. Amazon...

Announcing AWS Well-Architected Custom Lenses: Extend the Well-Architected Framework with Your Internal Best Practices

From AWS News Blog

We launched the AWS Well-Architected Framework back in 2015 to help you review workloads against architectural best practices, and across pillars such as operational excellence, security, reliability, performance efficiency,...

Introducing Amazon Braket Hybrid Jobs – Set Up, Monitor, and Efficiently Run Hybrid Quantum-Classical Workloads

From AWS News Blog

I find quantum computing fascinating! At its simplest level, it extends the concept of bits, that have 0 or 1 values, with quantum bits, or qubits, that can have...

New – Amazon EC2 M6a Instances Powered By 3rd Gen AMD EPYC Processors

From AWS News Blog

AWS and AMD have collaborated to give customers more choice and value in cloud computing, starting with the first generation AMD EPYC™ processors in 2018 such as M5a/R5a, M5ad/R5ad,...

R Language

Computing E[1/(1+X)] with the probability generating function

From Statistical Odds & Ends

I came across the following result recently when googling around for something else: Let be a discrete random variable taking values in , and let be its probability generating...

Computing E[1/(a+X)] for binomial X

From Statistical Odds & Ends

Theorem: For , let with . Then While the theorem does not give us a single explicit formula for , we can write out an expression for for a...

SQL Server News

Hidden Improvements in SQL Server 2019

From Glenn Berry

Introduction Microsoft launched SQL Server 2019 on November 4th 2019, so it has been GA for a little over two years now. The latest Cumulative Update (CU) right now...

SQL Server on Linux

How to Enable and Configure SQL Server Agent for SQL Server 2019 on RHEL 8.1

From MSSQL Tips

Learn how to configure and enable SQL Server Agent for SQL Server 2019 running on a Linux system.

Security News and Issues

Smart Contract Bug Results in $31 Million Loss

From Schneier on Security

A hacker stole $31 million from the blockchain com...

Planned Parenthood LA Breach Compromises 400,000 Patients' Data

From Dark Reading: Dark Reading News Analysis

The breach, which compromised data such as insuran...

USB Devices the Common Denominator in All Attacks on Air-Gapped Systems

From Dark Reading: Dark Reading News Analysis

A new study of 17 malware frameworks shows threat ...

Panasonic Hit in Data Breach

From Dark Reading: Dark Reading News Analysis

Tech firm reveals that data on one of its file servers was accessed by attackers.

Check out Microsoft Passwordless Authentication Solutions

From IT Pro - Microsoft Windows Information, Solutions, Tools

Test the no-password waters with passwordless authentication solutions from Microsoft.

Software Development

What Is Agile Software Development?

From IT Pro - Microsoft Windows Information, Solutions, Tools

Agile software development, in which apps are changed incrementally over short timespans, can benefit users and developers. Learn how it works, its advantages and its challenges.

T-SQL

What are the Aggregate Functions in SQL

From MSSQL Tips

In this article we look at how to use different T-SQL aggregate functions in SQL Server such as count, sum, min, max, avg and more along with examples.

A Slice of Time: Indexing and Window Functions

From 36 Chambers – The Legendary Journeys

This is part nine in a series on window functions in SQL Server. POC: the Rule of Thumb If you’ve been around the block with window functions, you’ve probably...

Understanding the SQL MIN statement and its use cases

From SQLShack

Today, I will explain an overview of the SQL MIN (...

A Slice of Time: Window Function Limitations

From 36 Chambers – The Legendary Journeys

This is part eight in a series on window functions in SQL Server. Not All Roses So far, we’ve seen some really cool things we can do with window...

Be careful with table updates

From SQLServerCentral Blogs

The dire warning in the subject line is not meant to scare you. Rather, it is advice that is going to be useful to those of us who need... The...

Converting VARBINARY to STRING on SQL Server

I recently had a requirement to load some data from a source table to another destination table. The destination columns were exactly the same as the source columns with the same data types and length. The only difference was that some columns on the destination table must be encrypted.

How to return multiple sequence numbers with sp_sequence_get_range

From Simple Talk

Developers can work with multiple range values at once using sp_sequence_get_range. Greg Larsen explains how to return multiple sequence numbers with sp_sequence_get_range.… The post How to return multiple sequence numbers...

Performance Score Models for Decisions about Time Series with SQL and Excel

From MSSQL Tips

In this article, we show how to model decisions about time series values based on performance scores using SQL code to manage and process the time series data in...

2048 game with T-SQL

From TomazTsql

What is 2048 game? It is a classical puzzle game, that is easy and fun to play. The objective of the game is to move the numbers (tiles in...

A Slice of Time: Good Use Cases

From 36 Chambers – The Legendary Journeys

This is part seven in a series on window functions in SQL Server. The Road So Far To this point, we’ve looked at five classes of window function in...

Tech News

What Is IT Risk Management?

From IT Pro - Microsoft Windows Information, Solutions, Tools

Establishing an IT risk management practice can help organizations reduce exposures and maintain regulatory compliance.

Virtualization and Containers/Kubernetes

vSphere 7 Cores per Socket and Virtual NUMA

From frankdenneman.nl

Regularly I meet with customers to discuss NUMA technology, and one of the topics that are always on the list is the Cores per Socket setting and its potential...

4 Options for Building a Hybrid Cloud: Kubernetes, VMware and Beyond

From IT Pro - Microsoft Windows Information, Solutions, Tools

There are a number of tools for building a hybrid cloud environment, so the challenge is picking the one that is best for your organization. We look at the...

Deploying Azure Container Instances for SQL Server 2019

From SQLShack

This article will show how to deploy SQL Server 20...

 
RSS FeedTwitter
This email has been sent to newsletter@newslettercollector.com. To be removed from this list, please click here. If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com. This newsletter was sent to you because you signed up at SQLServerCentral.com. Note: This is not the SQLServerCentral.com daily newsletter list, and unsubscribing to this newsletter will not stop you receiving the SQL Server Central daily newsletters. If you want to be removed from that list, you can follow the instructions on the daily newsletter.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -