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. WebinarsExtending DevOps practices to SQL Server databases with ReadyRoll and VSTS - Microsoft MVP Steve Jones, and Redgate’s Tom Austin, will show you how Redgate’s Database DevOps solution works to improve your database development and deployment processes. In this demo heavy session you’ll see how Redgate’s SQL Toolbelt allows you to take a local development database, source control it, set up automated builds and automate deployments to an Azure SQL database in less than an hour using VSTS. There will also be plenty of time to ask Steve and Tom questions. ...(more) Virtualization and ContainersDocker and Linux Containers on Windows, with or without Hyper-V Virtual Machines - Containers are lovely, in case you haven't heard. They are a nice and clean way to get a reliable and guaranteed deployment, no matter the host system....(more) Vendors/3rd Party ProductsFree virtual event: SQL in the City Streamed - Technical sessions will dive into the latest Microsoft SQL Server releases, and cover topical issues such as data compliance, protection & privacy....(more) How to Customize Schema Comparisons using Auto Map in SQL Compare - SQL Compare includes many options to make comparing objects easier on the developer. Auto mapping is one of these, and if often saves a little time and frustration. However, there are times that you many need to customize your mapping, and this gives you a technique for doing so....(more) T-SQLHow to Calculate Running Totals in SQL Server - The best solution, which is also reliable and supported? Using the SUM aggregate function as a window function....(more) HowTo: SQL type casting - In this post, we are going to present the more common castings one may wish to perform, along with the SQL code to do so, when using Amazon Redshift, PostgreSQL, Google BigQuery or SQL Server....(more) Does The Join Order of My Tables Matter? - Table join order matters for reducing the number of rows that the rest of the query needs to process. By default SQL Server gives you no control over the join order?—?it uses statistics and the query optimizer to pick what it thinks is a good join order....(more) Incorrect Syntax – What? - What do we do when the error message looks to be pretty intuitive but we can’t figure out where the problem is? ...(more) Tech News : General InterestThe FCC's Proposal To Nuke Net Neutrality - The Federal Communications Commission (FCC) released its proposal to end Obama-era net neutrality protections today, the day before Thanksgiving, with plans to vote on December 14....(more) SQL Server Security and AuditingEncrypting SQL Server connections with Let’s Encrypt certificates - Encrypting your SQL Server’s TDS connections should be high on your list of things to do if you’re concerned with the privacy of your data. This often boils down to one big problem: can you get a valid certificate without paying a ton of money, and will it work with SQL Server?...(more) SQL Server NewsMicrosoft Kerberos Configuration Manager 4.1 for SQL Server. - Kerberos authentication provides a highly secure method to authenticate client and server entities (security principals) on a network. To use Kerberos authentication with SQL Server, a Service Principal Name (SPN) must be registered with Active Directory, which plays the role of the Key Distribution Center in a Windows domain....(more) Cumulative Update #6 for SQL Server 2016 SP1 - The 6th cumulative update release for SQL Server 2016 SP1 is now available for download at the Microsoft Downloads site. ...(more) Cumulative Update #9 for SQL Server 2016 RTM - The 9th cumulative update release for SQL Server 2016 RTM is now available for download at the Microsoft Downloads site....(more) Security news and thoughtsScary But True: Hundreds of Popular Sites Log Everything You Type - Nearly 500 of the top 50,000 Web sites on Alexa use so-called "session replay" scripts from third-party companies to record practically everything users do while visiting their sites, according to new research from a team at Princeton University....(more) Uber Concealed Cyberattack That Exposed 57 Million People’s Data - Compromised data from the October 2016 attack included names, email addresses and phone numbers of 50 million Uber riders around the world, the company told Bloomberg on Tuesday. The personal information of about 7 million drivers were accessed as well, including some 600,000 U.S. driver’s license numbers....(more) Uber Hack Shows Vulnerability of Software Code-Sharing Services - Services like San Francisco-based Github Inc., GitLab and SourceForge are used by developers to collaborate on projects, track bugs in code and distribute early versions of applications. They’re also a target for cyberthieves....(more) R LanguageData Wrangling at Scale - The sparklyr package, which allows R to work with big data. In this note we we will use the sparklyr package, but concentrate on another important package called cdata....(more) PowerShellPowerShell Function to Automate Availability Group Failover - The function takes a replica name as input and queries system tables for Availability Groups running as secondary that are online, healthy, and synchronous. For each AG found, the function generates an ALTER AVAILABILITY GROUP statement....(more) Database Migrations – Capacity Planning with dbatools - Have you ever had to deal with system migrations as a DBA and struggle with capacity planning? This post shows you how to use dbatools to migrate a large number of databases from one server to another, first ensuring storage space is present....(more) PowerPivot/PowerQuery/PowerBIDynamic Row Level Security with Organizational Hierarchy Power BI - How to secure data according to the organizational hierarchy approach, where every person can access details for all employees under him or her. ...(more) Copy Conditional Columns in Power Query or Power BI - In this video, Adam looks at how to use conditional columns within Power Query and then copying them for use in other queries or Power BI Desktop files. This is a great technique if you don’t want to retype all of the conditional items in the dialog in Power BI....(more) Why the Default Summarization Property in Power BI is So Important - If the Default Summarization settings in your data model are not correct, it results in wrong data being displayed, or even missing data, on your report....(more) Performance Tuning SQL ServerHow to Track SQL Server Changes with sp_BlitzFirst - Logging calls to sp_BlitzFirst when making changes that might affect performance. ...(more) Get that Profiler feel in Extended Events - There are reasons to have issues with Extended Events. Although, in my opinion, they all boil down to one thing, I have to use XML if I want to query the output. It’s the single pain point I’ve found. If you have other reasons, such as the grid, maybe explore the tool in more detail to see if your complaints hold up. ...(more) Updated Stack Overflow Database Dump Importer v1.4 - The nice folks at Stack Overflow publish their entire data set (data included) in XML format. It’s tons of fun for demos, and this Database Dump Importer will give you an easy way to get it into a relational database....(more) Perfect statistics histogram in just few steps - Having more steps in a statistic object is not always synonym of better key value coverage, and better estimations. ...(more) What is the Role of the UPDATE Lock in SQL Server? - When a user executes an UPDATE statement against a row, the user is granted EXCLUSIVE lock on that row. If you monitor locks in your system, then you also might encounter UPDATE locks. Why do we need UPDATE locks, if we already have EXCLUSIVE locks for UPDATE operations?...(more) Getting the Right Indexes without Guessing - The goal of the DBA should be to have as many high-value indexes — indexes that will be used often by the workload — as possible while limiting indexes that won’t often be used....(more) HA/DR/Always On/ClusteringSQL Server 2017 Read-Scale Availability Groups - Read-Scale availability groups are ones where we don't want the availability group for high-availability or disaster recovery, instead, we want to use it to create multiple copies of our databases that span across multiple servers allowing for the spreading of a large read-only workload. ...(more) DevOps and Continuous Delivery (CI/CD)DevOps for Data Science – DevOps Maturity - Buck Woody delves into the details of implementing DevOps in your Data Science Projects....(more) How do I use VSTS variables in YAML CI Build definitions? - A quick tip from Ed Elliott to include build variables in a YAML build definition ( .vsts-ci.yml )....(more) Major new study reveals the true ROI of database DevOps - Redgate has launched a new research study that reveals the benefits different stakeholders can expect from DevOps, and provides a powerful methodology for calculating the ROI of database DevOps....(more) 5 tips for achieving continuous delivery - If you’re struggling to set up a reliable, repeatable release process you’re not alone. The good news is that most of the problems you’ll encounter have been solved before....(more) Data Mining/Data AnalysisIs there data on the quality of management decisions? - When you see a big company doing something that seems bizarrely inefficient, maybe it’s not inefficient and you just lack the information necessary to understand why the decision was efficient....(more) I May Never Be a Data Scientist - Chances are extremely high that I’ll never put down Data Scientist as my job. Considering what you do and what you know, I’ll bet a healthy percentage of you are in a similar situation. That’s OK. You know why? You know a lot about data, data movement and data processing that a Data Scientist doesn’t....(more) Columnstore IndexesImplementing Sliding Windows Data Purge Pattern with Columnstore Indexes - Data partitioning allows us to keep the purge process on metadata- and minimally logged-levels by switching the old-data partition to a staging table and truncating it afterwards....(more) Career GrowthWho are the Folks who made a difference? (T-SQL Tuesday 96) - A round up of 62 posts from SQL bloggers explaining who made a difference to their careers and their lives....(more) Slowing Down Your Motor Mouth – Presentation Tips for Fast Talkers - Four years ago, I got frustrated feedback from listeners who had a hard time keeping up with my mouth; now I get congratulations that the pace was great....(more) What Specialists and Generalists Get Paid For - Generalists get paid to learn new things fast and adapt. Specialists get paid for things they already know very well....(more) Backup and RecoveryDisaster recovery 101: fixing a broken system table page - How Paul Randal helped a reader recover data from a corrupt database, when they did not have any up-to-date backups without the corruption....(more) Restoring SQL Server Database on Linux using SQL Operations Studio - How to get SQL Server running in a Docker container, connect using SQL Operations Studio, and restore a SQL Server database....(more) How we made backups faster with SQL Server 2017 - How the SQL Server team leveraged the indirect checkpoint heuristics to enable faster backups....(more) Azure SQL DatabaseAzure SQL Database – Service Tiers - Naturally the cost of Azure SQL Database directly relates to what tier and performance level you are using. Starting from the least expensive basic database to the more premium ones I thought it would be worthwhile capturing the costs (GBP) across all tiers....(more) Analysis Services / BI on the MS StackDictinct Count of a Dimension based on a Filtered Measure - Enthusiastic as we were, one of the hardest nuts to crack, though it seemed so simple during requirements gathering, was to perform a distinct count of a dimension based on a filtered measure on a couple of the reports. ...(more) Administration of SQL ServerImporting Registered Servers from SSMS into SQL Operations Studio - Using PowerShell to import registered servers from SSMS into SQL Operations Studio....(more) Microsoft SQL Operations Studio Preview - Microsoft has made the new cross-platform SQL Operations Studio (SOS) tool available on Github as a free open-source project. This SOS preview allows one to develop and manage SQL Server and Azure SQL Database from Windows, Linux, and macOS....(more) Sessions, Temporary Objects, and the Afterlife - Sessions, in SQL Server, are born when a Connection is made from a client library to SQL Server. Temporary objects may be created during a Session’s lifetime. The question is: for those temporary objects that are not explicitly dropped, what exactly happens to them?...(more) SQL Server – DBCC CHECKTABLE - Arun Sirpal discovers that you can run repair via DBCC CHECKTABLE, as well as DBCC CHECKDB....(more) |