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. These headlines are gathered throughout the week and are posted in real time at the website. Check there for information throughout the week or enjoy this weekly summary of the SQL Server world. Vendors/3rd Party ProductsJoin Redgate’s SQL data catalog early access program - Redgate wants your help to develop a SQL Server data catalog that meets today’s compliance and DevOps needs. If you’re interested in taking part in research and providing feedback on new releases, please register for the early access program....(more) T-SQLMerge Statements - Over the years I have come across a lot of merge statements and I find most of the time there is one fundamental flaw in how it is written by most people. In the update section in most cases I find that there is no section there to check if anything ......(more) Database Fundamentals #18: The SELECT Statement - In my previous Database Fundamentals post, I showed you how to use the Query Designer to build a query. That was a SELECT statement. The basic construct of all your SELECT statements will be the same. You’re going to define a list of columns, the table ......(more) Querying Data in Temporal Tables - Following on from my previous post about modifying data in a temporal table, I will be looking into querying the data in this post. When you want to get latest (actual) state of data in a temporal table, you can query the same way as you query a normal ......(more) CROSS APPLY in T-SQL: Why to APPLY - Why use APPLY? Michelle asked a great question on the quiz page: In your own words, why would one want to use a cross apply operator rather than a join operator? I’m old school, and I’m just not getting why a cross apply would be so much better to use than a join....(more) Tech NewsUN Environment and Google Announce Ground-Breaking Partnership to Protect our Planet - A recent press release reports, “UN Environment and Google announced today a global partnership that promises to change the way we see our planet. Combining environmental science, big data and unprecedented accessibility, this joint effort aims to expand ......(more) SQL Server SecurityManaging SQL Logins in different environments - In this post I want to show you how we can manage SQL Server logins to avoid a very common problem Speaking of security, in SQL Server we have the possibility of authenticating in two different ways, one it is based on Windows Authentication and allow ......(more) SQL Server on LinuxTaking the Linux plunge - I’m a Windows guy. Kinda have had to be, given my profession as a SQL Server DBA. But recently I’ve become a bit discontent with Windows. Nothing out of the usual has contributed to this, just things like UAC, updates etc. Now in the past, I’ve had to ......(more) Software DevelopmentHow to Successfully Deliver IT Projects in a Not-so-Agile Organization - Agile methodology for software delivery is accepted at many organizations but is not used everywhere. In this article, Mohammad Rizvi gives advice on how to successfully implement a software project in a non-Agile environment....(more) Security news and thoughtsWhy No HTTPS? Here's the World's Largest Websites Not Redirecting Insecure Requests to HTTPS - Presently sponsored by: Matchlight by Terbium Labs: Know when your exact data appears on the dark web. Schedule a meeting during Black Hat to learn more!As of today, Google begins shipping Chrome 68 which flags all sites served over the HTTP scheme as ......(more) A Brief History of Data Security - Data Security describes the protection of digital data from a cyberattack or a data breach. A data breach is the unauthorized opening of data, typically to read or copy the information. Stolen data may contain confidential information, such as customer ......(more) R LanguageReal-time data visualization using R and data extracting from SQL Server - In the previous post, I have showed how to visualize near real-time data using Python and Dash module. And it is time to see one of the many ways, how to do it in R. This time, I will not use any additional frames for visualization, like shiny, plotly ......(more) Product Reviews and ArticlesSQL Prompt code analysis: avoid non-standard column aliases - There was a time when column aliases in SQL Server and Sybase were only declared by an assignment expression, and some people are still fond of the old way of doing it, in much the same way as some of us still like line-dancing, or singing madrigals ......(more) PowerPivot/PowerQuery/PowerBIPower BI 101- Logging and Tracing, Part II - So we went over locations and the basics of logging and tracing in Power BI. I now want to know how to make more sense from the data. In Oracle, we use a utility called TKProf, (along with others and a number of third party tools) to make sense of ......(more) Performance Tuning SQL ServerExtended events (XE): Create a simple XE - When someone says still uses SQL Profiler.Image is taken from hereAn ancient, dark place, a source of many legends and histories, although some people have been able to get out alive, some others are stuck there, the locals refer to it as "The nosy one" ......(more) Performance Myths: The query result cache - I was recently doing a training session when a developer commented that it was OK to run an expensive query twice because on the second execution, SQL Server would use the “results cache” and be “practically free”. It’s not the first time I’ve heard ......(more) Dangerous moves: Setting max size for In-Memory OLTP containers - I recently saw a thread on twitter, where the OP talked about setting the max size for an In-Memory OLTP container. I responded as I always do: it’s not possible to set a limit on anything having to do with storage for In-Memory OLTP. Unfortunately, that’s not correct: through SSMS or TSQL, you can in fact set a max size for a container. ...(more) What To Do When Wait Stats Don’t Help - Some SQL Server workloads are slow even though there aren’t any hints in the wait stats that suggest ways to make them go faster. This blog post works through a columnstore example of such a workload....(more) Microsoft NewsThe Ability Hacks: Microsoft employees hack to make tech more accessible - The Ability Hacks shares the "behind-the-scenes" stories of the Ability EyeGaze Hack team and the Learning Tools Hack team This week at the Microsoft One Week Hackathon, we will witness employees from around the company work together to “hack” solutions ......(more) Microsoft delivers public previews of its Office 2019 server products - The 2019 releases of on-premises Exchange Server, SharePoint Server and Skype for Business Server, which are due out before the end of 2018, are now available in public preview form. ...(more) HA/DR/Always On/ClusteringSQL Server Availability Groups – Enhanced Database Level Failover - Database level health detection failover (DB_Failover) option for Availability Groups was introduced in SQL Server 2016 with the objective to provide a mechanism for availability groups to failover, if one or more databases in the availability had any issues. This feature helps guarantee the high availability for your databases and is a recommended best practice for all availability Groups with mission critical databases. This Microsoft document describes the database level health detection failover option in detail. In its initial implementation the database level health detection option was designed to check the following conditions on the primary replica of the availability group....(more) AlwaysOn_health Extended Event Session - The AlwaysOn_health XEvent session is installed by SQL Server by default, and started by the Create Availability Group wizard when a new availability group is created. AlwaysOn_health Extended Event Session The xEvent session collects events triggered ......(more) Why Availability Databases Are Not Synchronizing? - If you are working on SQL Server Availability Group Databases, you may have seen that Availability Group is online but at-least one availability database at the primary or the secondary is not synchronizing. In the blog, we are going to explore how to ......(more) ETL/SSIS/ELTSSIS Script Task:Error: The Script Task is corrupted. - There are probably a lot of SSIS corruption errors, but that is one that is very easy to solve. The whole error message is texted like this: Script Task:Error: The Script Task is corrupted. Script Task:Error: There were errors during task validation. Script Task:Error: There was an exception while loading Script Task from XML: System.Exception: The Script Task "ST_74aca886806a416fa34ae89cac6237c2" uses version 15.0 script that is not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services. at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML(XmlElement elemProj, IDTSInfoEvents events)...(more) DevOps and Continuous Delivery (CI/CD)Get started with DevOps - I'm starting to put my own head into the vast world of DevOps myself and over the next few months I'll be sharing resources I find interesting and useful along the way. As a starting point, you might want to look this short video: Get started with GIT and ......(more) Database Design, Theory and DevelopmentJump to Start Test-Driven Database Development (TDDD) – Part 2 - We discussed the basics of test-driven database development (TDDD) with examples and compared it with traditional database development in the first part of this article. In the second part, we are going to move beyond basics to focus on a more realistic scenario of meeting report requirements by using TDDD....(more) Data ScienceCommon Mistakes to Avoid When Learning to Code in Python - Python is one of the simple program language one can learn and it’s a very flexible, object oriented language when it comes to syntax. Python created a new revolution in the coding segment. Coding is joy. Coding is fun.Coding is everything to programmers, ......(more) Data Privacy and GDPRForget GDPR. Think HIPAA, SOX, PCI, SHIELD and the CCPA. - The introduction of the GDPR in Europe caused a lot of companies to start thinking more seriously about data privacy. It also prompted some American companies to reconsider doing business in Europe, and US-based websites like the Los Angeles Times and the New York Daily News have actually blocked access to EU visitors....(more) Information Security in Practice - Along with the GDPR, regulations require that confidential data is protected and used properly. In this article, William Brewer discusses the ways that data manages to migrate around the organisation and the challenges found in protecting that data....(more) Conferences, Classes, and EventsVMworld 2018 SQL Server Sessions - I hope to see you all at this year’s VMworld 2018 USA conference where I’m lucky enough to have been selected to present four SQL Server-themed sessions! The first is an all-day boot camp (VAP3768WU) with Oleg Ulyanov from VMware Corp. where we take ......(more) Computing in the Cloud (Azure, Google , AWS)Google is Building a Version of Kubernetes Engine for On-Prem Data Centers - Google Cloud is building a version of its Kubernetes Engine service users can run in their own data centers • Currently in alpha, GKE On-Prem is meant to give enterprises a consistent way to manage their application infrastructure in-house and in the ......(more) Creating SQL images in Azure with ACR Build – Part Two - In Part One I detailed how we can use ACR Build to push SQL Server docker images to the Azure Container Registry. But that all seems a bit manual, doesn’t it? One of the cool things about ACR build is that we can hook it into GitHub so when we commit ......(more) How Azure Data Sync Helps Businesses Develop Cloud Migration Strategy - Microsoft's new Azure cloud platform tool brings on premises even closer to the cloud, helping companies develop their cloud migration strategy. ...(more) Career GrowthIndustry Practice Is No Substitute for Foundation Knowledge - “A short time ago a colleague asked me where he could find a "Databases 101" guide for the non-technical professional. As it turns out, the internet is littered with information, and mis-information, regarding data and databases. This makes it difficult ......(more) Backup and RecoveryBackup Performance Testing - Reliable database backups are perhaps the single most important aspect of a Database Administrator’s job. The business risk from data-loss that can occur without a reliable database backup are substantial enough to bring many smaller... The post Backup ......(more) Azure SQL DatabaseNext on the Menu – event file target for Azure SQL Database - In this SQL Snacks™ we will examine the techniques required to implement the file target for an Azure SQL Database. We will also examine the differences in the Extended Event system between on premises and Azure SQL Database. The link with the instructions ......(more) PsPing your Azure SQL Server - PsPing tool is part of the sysinternals PsTools download found – ( https://docs.microsoft.com/en-us/sysinternals/downloads/psping) This is the tool of choice when wanting to find out latency to your Azure SQL Server. In addition to standard ICMP ping ......(more) Azure SQL Data Warehouse and Data LakeBuild hybrid cloud analytics solutions with ADLA Task in SSIS - Today, we are pleased to announce new support for the Azure Data Lake Analytics Task (ADLA Task) in the Azure Feature Pack for Integration Services (SSIS). The ADLA Task enables you to easily extend your existing SSIS workflows with big data compute capability in the cloud powered by ADLA. More and more customers are storing large amounts of raw data in the cloud. At the same time, some customers continue to process the data on-premises due to legacy or security constraints. Since the movement of big data is very costly, it is a good choice to transform the born-in-the-cloud big data into reasonable size in the cloud, and then only move aggregated data off the cloud and integrate it with existing on-premises data sources....(more) New eBook - Data Lakes in a Modern Data Architecture - This is a quick announcement of a new resource available published to the BlueGranite site.If you're interested in data lakes, you might want to check out an updated ebook just published to the BlueGranite site. It's called "Data Lakes in a Modern Data ......(more) AI/Machine Learning/Cognitive ServicesA quick tour of AI services in Azure - If you're after a quick overview of some of the services available in Azure to build AI-enabled applications, you might want to check out the 6-minute video below. It provides a tour of three services: Azure Cognitive Services, pre-trained machine learning ......(more) Machine Learning Results in R: one plot to rule them all! (Part 2 – Regression Models) - Given the number of people interested in my first post for visualizing Classification Models Results, I’ve decided to create and share some new function to visualize and compare whole Linear Regression Models with one line of code. These plots will help ......(more) Big Tech is Throwing Money and Talent at Robots for the Home - Behind the scenes, big tech companies are funding secret projects to develop robots. ...(more) Administration of SQL ServerSQL SERVER – Quick Introduction to Startup Procedures - In today’s blog we are going to talk about the SQL Server feature which actually exists for a quite a while but interestingly enough it is not known much. Let us have a quick introduction to startup procedures. In SQL Server we can mark any procedure ......(more) Mimic Production in Development - Attempting to debug production performance problems in your development environment can be problematic in many ways, leading to a frustrating troubleshooting experience. One very common situation is the resources on the development environment are substantially... The ......(more) SQL Server Database Corruption! Understanding and Diagnosing - Of all the things that can ruin your day as a DBA and possibly get you fired, database corruption ranks right up there with backups and security enforcement of the database. Database corruption can be a resume generating event! A corrupt database can affect system stability, lead to unnecessary downtime, and possibly the loss of some data. To manage the risk you must know what database corruption is, how to diagnose, how to fix, and how to prevent....(more) |