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

Responding to the Call of the Wild

I was working away at trying to set up remote servers with alias server names the other day. I'd done it many times in the past, but for some reason it just wasn't 'happening' this time. I was staring in puzzlement at the screen when I recalled that an old programmer once told me that development work could, at times, be more like lion taming. At the time he told me that, I wasn't sure what he meant. After all, you don't approach an IT problem with an upturned chair, a whip, and a gun, do you?

The meaning is more nuanced than this: it is all about the way that a horse-whisperer, or lion whisperer in this case, tackles the problem and 'prepares themselves mentally'. The first step in preparing to tackle a really difficult and pernicious IT problem is to not show your fear. You have to be confident you can deal with whatever the truculent problem can throw at you, which will generally include obscure and misleading error messages, the blue-screen of death, help-text written by an intern, and scattergun log file information.

Never turn your back on the snarling beast, even for an instant. Calm eye contact is essential. The thing is, if you get distracted and do something else, it is tricky going back. Every fibre of one's being resents doing so. You delay and prevaricate. You shrug and tell people that the objective probably isn't 'strategic', or 'a high enough priority within the team' or 'won't be supported'. No, it is much better reconcile yourself quickly to the fact that it is going to take a while, and so take time to set up the most effective test harnesses and scripts to ease the pain and make it quicker to fail. Arrange for sandwiches to be brought in every four hours. You can then face the prospect of a battle of wills, even one that lasts into the night. If you solve it within minutes, then the pleasure of dominance over the machine is that much more intense. As the horse whisperers say, it is difficult to overemphasize how "very, very careful, and quiet, and calm, and comforting one needs to be".

I occasionally wonder whether machines and applications hear the 'call of the wild', and were intended to be free spirits, roaming the majestic plains of the internet. Sadly, I prefer my servers to be docile, well tethered, with a ring through the nose, but they seem to occasionally to sense the breeze, flare their nostrils and give a brief howl for the life of freedom.

Phil Factor

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

SQL IntelliSense and Autocomplete in SSMS

Phil Factor reviews the major features of SSMS IntelliSense and autocomplete and then explains how SQL Prompt fills in the gaps, and how to use to use the two in tandem to 'get the best of both worlds'.

Questions about SQL Prompt you were too shy to ask

Phil Factor answers some questions you've been itching to ask about SQL Prompt, covering ranked code completion suggestions and auto-fixing SQL code smells, and suggesting where in the tool to find other nuggets of hidden treasure.

Administration

Find All Databases with Less Than 20 Percent Free Space and Grow Them

Thousands of databases in a SQL instance can make a DBA’s life a bit challenging. Automation suddenly becomes very important.

How to Turn Off Query Store…in an emergency

Erin Stellato discovers a helpful 'back door' way to turn off Query Store when you think it might be the cause of a problem.

Renaming SQL Server Databases (video)

Video walkthrough of renaming or “flipping” databases to minimize down time during a refresh. Most commonly when moving a copy from prod to dev.

Azure DevOps

Recurring Schedules in Azure DevOps Release Pipelines – Artifacts and Stages

Kendra Little delves into how schedules work in “classic” release pipelines.

Azure SQL Database

Copying an Azure SQL Database

Your development copy of an Azure SQL Database has been certified for early testing and now you want an exact copy in QA to start integration testing. Here's how you can do it...

Azure Synapse (SQL Data Warehouse and Data Lake)

Synapse and federated queries

James Serra explores a cool new feature in the public preview of Synapse that makes it much easier to write federated queries, without first having to write ETL to collect all the data into a relational database or to provision a SQL pool.

Computing in the Cloud (Azure, Google, AWS)

Static Hosting with Azure Blob Storage and Azure CDN

No matter what you need, Azure probably has a solution. In this article Diogo Souza demonstrates how to host a static web page in Azure in just a few steps with Azure Blob Storage and Azure CDN.

Let’s move: Azure Resource Mover

Moving resources from one location to another in Azure has been possible but not easy to do. In this article, Dennes Torres introduces an exiting new Azure feature: Azure Resource Mover.

Conferences, Classes, Events, and Webinars

Monitoring Amazon RDS with Redgate SQL Monitor

With the launch of SQL Monitor 11, you can now monitor your SQL Servers hosted on Amazon RDS alongside your on-premises and other cloud-based servers, instances, and databases. Join this webinar to discover the benefits of monitoring your entire estate, including on-premises and cloud-hosted databases, from a single pane of glass.

Bringing Data Catalog into your CI/CD Pipeline

In this webinar discover how Redgate’s Data Catalog tool gives organizations the ability to organize their data classification in a centralized interface, and gain additional insights into where their sensitive data lives.

DMO/SMO/Powershell

Memory Improvements in Data Masking for dbatools

Sander Stad explains how he made memory improvements in data masking for dbatools.

Easy PowerShell Custom Formatting

Running Get-Process is simple enough and the output is pretty complete but you want to see high-memory use processes highlighted in red! Here's how it's done...

PowerShell: Difference between Break, Return and Exit

Examining the differences between three PowerShell statements that are widely used in PowerShell scripts: Break, Return and Exit.

Data Access / ORMs

Entity Framework Core SQL Server reverse engineering a.k.a Database First gotchas (and workarounds)

This post lists a number of known issues you may encounter with Entity Framework Core Power Tools SQL Server reverse engineering, or when running the dotnet ef dbcontext scaffold command, and provides resolutions or workarounds for each issue.

Data Mining / Data Analysis

Feature Engineering with Sliding Windows and Lagged Inputs

Sliding windows functions and lagged inputs, used to predict the SCORE for upcoming restaurant food inspections in Wake County.

Database Design, Theory and Development

SQL Server Synonyms

SQL Server synonyms can be used to permanently alias database objects in the same or another database. In this article, Greg Larsen demonstrates how to use synonyms and the many reasons to consider using them.

ETL/SSIS/Azure Data Factory/Biml

Deploy Data Factory from GIT to Azure with ARM Template

The good news is the ARM template is not only easy, but the same for any data factory we would like to deploy, because it just need to point to a github repo and all the data factory code will come from there.

Only Took a Pandemic, But She’s Back and Brought PoSH Automation Presents

It's really about how to simplify metadata driven pipelines in Azure Data Factory...

Using Durable Functions in Azure Data Factory - Support for long running processes in Azure Functions

Could a Durable Function be the answer to Rayis Imayev's quest for stable execution of a long-running processes in Azure Data factory?

HA/DR/Always On/Clustering

Configure Database Mirroring in SQL Server

A step by step how to for configuring the database mirror.

MDX/DAX

Set functions in DAX: UNION, INTERSECT, and EXCEPT

This article describes the behavior of the DAX functions that manipulate sets; they are useful to create queries and sometimes also to author measures.

Oracle

Why choose Oracle?

Oracle has been established as one of the top database systems used in enterprises throughout the world. In this article, Cynthia Dzikiti describes her career as an Oracle application developer and covers some of the benefits of Oracle.

Performance Tuning SQL Server

The SQLServerFast Execution Plan Video Training

Hugo Kornelis releases "Understanding Execution Plans – advanced level" as part of his SQLServerFast Execution Plan Video Training.

Reasons Your Query Is Slow Right Now: Server Changes

I know, it sounds foolish. Trivial, even. Don’t let people make changes without permission.

Reasons Your Query Is Slow Right Now: Your Server Is Overloaded

If you go to open a new tab in SSMS and you hear a creaking sound, it might be time to revisit some of your hardware choices.

Most Costly Statement in a Stored Procedure

A lot of stored procedures have multiple statements and determining the most costly statement in a given proc is a very common task. Happily, Extended Events are here to help.

TempDB Bottlenecks and More

Understanding and gathering relevant information about TempDB bottlenecks.

PowerPivot/PowerQuery/PowerBI

Doing Power BI the Right Way: 7. Validating data model results

Making the leap to using reports built on a tabular data model instead of the source database means the developer has to stop thinking in SQL and start thinking in model mechanics. This can pose a challenge when needing to validate numbers in a report, which should be done using the data model and not only by running by a SQL query.

A Function To Visualise Parallelism In Power Query Diagnostics Data

Chris Webb presents an M function for investigating all the queries that are executed for a single dataset refresh.

Use PowerShell to download all your Power BI reports from a workspace

You can use PowerShell to download all the PBI reports in a workspace in one go, instead of having to download them one at a time using the PBI service UI.

Group By In Power Query When Data In Column Changes

The normal way the Table.Group function works is to group the entire table by the field(s) you are grouping by, then providing whatever aggregations you need. However, you can alter that behavior and group data by a column, and have it provide a separate group at each change in the data.

Automating PowerBI Deployments: Update Report Parameters

How to use the Power BI REST API to update parameters.

Calculation Groups with Disconnected Tables in Power BI/AAS

How to create a disconnected table, disconnected measure and then link the disconnected table with a calculation group.

R Language

Display Pretty R tables in GitHub

There is only one problem with the .md output: PRETTY TABLES! Most of the pretty tables packages that I like to use, or don’t display all of the formatting, or don’t display at all in .md format. Fear not, this is very easily solved by simply changing your output to html and setting up GitHub pages on your GitHub repo.

Replication

SQL Server Replication: The reports of my death are greatly exaggerated

Given how useful it now is with the Azure SQL Database options, there's never been a better time to learn about replication.

Error: SQL Replication – Remote Server does not exist, or not designated

A timely reminder to check ALL of the permissions when working with replication.

T-SQL

Supermarket Seeks and Scans

Shopping in a supermarket is obviously very different to querying a database, but the underlying concepts behind how we pull the right goods from the shelves definitely have some strong similarities.

Databases Are Like Walk-In Coolers. #tsql2sday

Database server = fridge. Chef = developer. DBA = refrigeration tech.

T-SQL Tuesday #131: Power BI ELI5

Using a program called Power BI, the computer can tell us we have 800 jelly beans! That’s a lot of jelly beans.

T-SQL Tuesday #131 – Join operators simplified

Nested Loops joins star in tense courthouse drama.

sql_handle and the SQL Server batch text hash

This article describes the structure of a sql_handle and shows how the batch text hash component is calculated.

Fundamentals of table expressions, Part 7 – CTEs, optimization considerations

Continuing his series on named table expressions, Itzik Ben-Gan turns his focus onto optimization considerations of CTEs.

 
RSS FeedTwitter
This email has been sent to {email}. 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

 

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