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. Virtualization and ContainersWhat if the VM Memory Config Exceeds the Memory Capacity of the Physical NUMA Node? - The monster VM with a particular memory configuration that exceeds the ESXi host NUMA node memory configuration....(more) Limiting resources available to containers - Showing how simple it is to limit the resources available to containers, to avoid having one container consume all the resources on your host....(more) Vendors/3rd Party ProductsCompound FKs with SQL Data Generator - How is data generated with SQL Data Generator and foreign keys. In this case, the person was having an issue with a compound foreign key and Steve Jones helps out....(more) T-SQLHow Far Has My Update Got? - A script that will script will dive into the transaction log and return you the number of rows that have been modified, inserted or deleted by the SPID that you plug into @SPID....(more) Broken View Finder - Recently, we were asked to migrate some code changes and after doing so, the requesting team told us we had broken all of their views, but they couldn't tell us what was broken, just that everything was. After a quick rollback to snapshot, thank you Red Gate SQL Compare, I thought it'd be enlightening to see whether anything was broken before our code had been deployed....(more) The Alpha and the Omega. The BEGIN and the END. - A BEGIN...END primer. The trick is to remember that your IF, WHILE, etc only execute one statement. So if you want to do more than that you need the BEGIN and the END....(more) Love and Hate for SSMS - People have strong feelings about SQL Server Management Studio: they love it AND they hate it. In this week’s episode, I talk about why people have such conflicting feelings about SSMS, and how to work it all out....(more) Regular Expressions With R And T-SQL - Dave Mason has finally found a tangible example of something he can use R for....(more) Why You Can’t Use ROW_NUMBER() In Your WHERE Clause - “I want to see the oldest amount due for each account, along with the account number and due date, ordered by account number.”...(more) SQLskills SQL101: Running out of ints and bigints - Paul Randal is often asked about using an int identity as a clustering key and the possibility of running out of integers. One solution is to use a bigint identity as the key. This can store 2^64 or about 18.5 quintillion (18.5 billion billion) values, between -2^63 and 2^63-1....(more) An Adaptive Join Regression - Joe Obbish is curious as to why Microsoft made the adaptive join tipping point so dependent on cardinality estimates going into the join....(more) Migrating to Native Scoring with SQL Server 2017 PREDICT - PREDICT should make predictions much faster as the process avoids having to marshal the data between SQL Server and Machine Learning Services. However, migrating from the original sp_execute_external_script approach to the new native approach tripped me up so I thought I'd share a quick summary of what I have learned....(more) How to record T-SQL execution times using a SQL Prompt snippet - Phil Factor shares the SQL Prompt snippet he uses as a standard testbed for getting execution times for procedures and functions....(more) SQL Server Security and AuditingSetting up Change Data Capture (CDC) - CDC can be a useful tool for capturing a change history for specific data – which is something we might be thinking about a bit more now the GDPR is heading our way....(more) SQL Server on LinuxUnattended install and configuration for SQL Server 2017 on Linux - The SQLCAT team share a sample script that will work across multiple supported platforms, and further ease the unattended install process for SQL Server on Linux....(more) SQL Server NewsSQL Updates Newsletter – September 2017 - Lots and lots of news from Ignite, plus issue alerts, recent blogs, and more....(more) SQL Server 2012 Service Pack 4 (SP4) is now available! - This release of SQL 2012 Service Pack has 20+ improvements centered around performance, scalability and diagnostics based on feedback from customers and the SQL Server community....(more) SQL Server 2017 on Windows Linux and Docker is now generally available - Travis Wright, Principal Program Manager, SQL Server Engineering summarizes the 'big ticket' new features of SQL Server 2017....(more) Software DevelopmentThe Curious Case of the Longevity of C - As a programming language, C has an essential simplicity, even if in practice this readily translates to “Be scared. All of the time”. Despite this I do find great pleasure of writing in C, to get something elegant working fast and safe is a reward other languages fail to give....(more) Reporting ServicesSQL Server 2017 Reporting Services now generally available - Offering a lightweight installer, to a modern REST API, to an updated Report Viewer control and web part, and more....(more) R LanguageSQL Server R Services: Generating Sparklines and Other Types of Spark Graphs - By being able to run R from SQL Server, you have available to you not just a convenient way of performing analysis on data but also a wide range of more specialised graphical facilities. Rob Sheldon illustrates the point by demonstrating how you can create sparklines that can then be embedded in reports....(more) PowerShellPowerShell Classes Part 5 — Classes or PSCustom Objects? - This article explores a traditional PowerShell programming approach using a custom object and compares it to an object-oriented approach using classes....(more) PowerPivot/PowerQuery/PowerBIWhy data modeling is important in Power BI - The question is: what is the right data model for the business analysis? The first simple answer is: the model should be designed to answer business questions, and not to simply represent the data as they come from the data source....(more) Monitoring SQL Server with Power BI - Dennes Torres shows how we can import query store information into power bi and create a very useful dashboard to monitor SQL Server. ...(more) Avoiding circular dependency errors in DAX - This article explains how DAX handles dependencies between tables, columns and relationships, to help you avoid circular dependency errors....(more) What is Power BI Embedded? - In this video, Adam walks through what Power BI Embedded is. He talks about how you can get started with Power BI Embedded as well as what resources are available for you....(more) Using Variables in DAX - Matt Allington describes some of the benefits of using variables in DAX, then offers an example of how their use improved the performance of one of his formulas....(more) Performance Tuning SQL ServerIO Patterns for Index Seeks: There May be a Lot of Read Ahead Reads - We tend to think of an index seek as a small, efficient retrieval of a few pages. It “seeks” straight there. But this isn’t necessarily the case. Seeks can read quite a large amount of data — even all the data in a table if it meets the criteria for the key that I’m seeking on....(more) Microsoft NewsWhy it’s time to think seriously about SQL Server 2017 - SQL Server 2017 has officially landed, and is now on general release. The latest version of the heavyweight platform is more than the sum of its parts, however, because it doesn’t just deliver new functionality. Alongside the list of extra features, it also changes two important ways we think about the platform itself....(more) Hardware TestingBest CPUs for Workstations 2017 - In our series of Best CPU guides, here’s the latest update to our recommended workstation CPUs list. All numbers in the text are updated to reflect pricing at the time of writing (02-Oct). Numbers in graphs reflect MSRP....(more) The AnandTech Coffee Lake Review: Initial Numbers on the Core i7-8700K and Core i5-8400 - It has been ten years since Intel introduced quad-core processors into its mainstream product range. It was expected that six-core parts would hit the segment a few years after, however due to process improvements, microarchitecture gains, cost, and a lack of competition, the top-end mainstream processor is still a quad-core a decade later. That changes today....(more) HA/DR/Always On/ClusteringConnecting to Named Instances without using the Instance Name - How does failover from a primary to a secondary SQL Server work for a named instance, when the named instance is in the connection string, and the instances on the primary and secondary have different names?...(more) DevOps and Continuous Delivery (CI/CD)How Can DevOps Concepts Provide Value in Digital Transformation Projects? - For some of us, DevOps means Startups, Cloud, fast-moving social-media applications and Extreme Programming (XP). What about large corporate IT initiatives, Digital Transformation projects, and business process re-engineering? Can Devops be relevant and appropriate? Mohammad Rizvi argues from experience that it most certainly can be....(more) Can the database be included in DevOps in financial services? - For many Database Administrators (DBAs) who work in financial services, deploying database changes is the most taxing part of your job. You're likely required to review thousands of lines of script and it can take days, depending on how many errors you find. Even when database deployments are better planned, it’s not an easy journey, and DBAs are often regarded as the blocker in the process, the ones who are causing the problem rather than trying to resolve it....(more) Data ScienceData Science 101: Sentiment Analysis in R Tutorial - Do you have text data? Do you want to figure out whether the opinions expressed in it are positive or negative? Then you've come to the right place! ...(more) Data Mining/Data AnalysisUnderstanding the Division of Labor between Analytics Applications and DBMS - We have instructions on how to do "analytics with SQL", and then tools purporting to enable "analytics without SQL." They are an umpteenth iteration of essentially similar ideas during my 30-plus years in data management and reflect common and entrenched fundamental misconceptions about data fundamentals....(more) Computing in the Cloud (Azure, Google , AWS)Picking the right Azure VM size using Load Testing - The major cloud providers have essentially become commodities, especially with IaaS, but that doesn't mean every VM configuration is the same across the providers. Bob Walker describes how to configure correctly-sized VMs, using a series of load tests after building out the environment. ...(more) An introduction to Azure Web Apps on Linux - Azure App Service has now got more versatile because it can now run Linux. Not only can you now run Web App for Containers, and publish Docker containers to Azure, but there is built-in support for ASP.NET Core, Node.js, PHP and Ruby on Linux. This allows you host microservicess on a fully-managed platform. Christos Matskas explains....(more) Career GrowthHow to Understand Where a Software Vendor Employee is Coming From - Brent Ozar has had a lot of conversations with software vendor employees over the years, and has noticed a few things. Understanding these will help you parse what you’re hearing....(more) Analysis Services / BI on the MS StackSSAS Multidimensional HOLAP Storage: Even More Useless Than You Might Think - In almost 20 years of using Analysis Services, Chris Webb has never used HOLAP storage. However, surely it could help improve query performance for a customer that was using ROLAP storage on top of Exasol? Sadly not....(more) Analysis Services Innovations in SQL Server 2017 - Summarizing the new features of the latest SSAS release, including the ability to define a custom row set contributing to a measure value, object level security and more....(more) AI/Machine Learning/Cognitive ServicesHow to Build and Deploy Scalable Machine Learning in Production with Apache Kafka - Potential use cases for machine learning in real time applications, using Apache Kafka as the central nervous system and its Streams API to build intelligent streaming applications....(more) Administration of SQL ServerBad Idea Jeans: Finding Undocumented Trace Flags - Brent Ozar shows how to go searching for undocumented trace flags. Don't ever run this on a server you care about...(more) No More SQL Server Service Packs: Is CU12 the New SP1? - Starting with yesterday’s release of SQL Server 2017, Microsoft has a new servicing model: they’re only delivering Cumulative Updates, and not doing Service Packs....(more) Setting a Processor Affinity in SQL Server – the (unwanted) Side-Effects - What is Processor Affinity, how it relates to SQL Server, and why setting it might have unwanted side effects....(more) SQL Server – Pause VS Stop - Use pause when you want to wait for users to complete work before you stop the service. This enables them to complete transactions that are in progress...(more) Changes to Service Packs and Cumulative Updates for SQL Server 2017 - Randolph West explains the new 'rapid servicing model' for SQL Server 2017, replacing the old Service Packs plus Cumulative Update model....(more) |