| A community of more than 1,600,000 database professionals and growing |
| | Moving to Query Store In SQL Server 2016, Microsoft introduced the Query Data Store (QDS) as a tool that would capture data about the execution of queries inside of your database. This was a project that had been in the works for a number of years, and one that many of us that were bound by NDA agreements had been following. We were excited by the chance to actually gather some information on the. Are you using Query Store? You should be, as this tool will become more valuable over time. I know that there are potential overhead issues (3-5% for most people, but possibly larger). I would argue that the potential for better performance and understanding of our systems outweighs the overhead. After all, if we're unwilling to devote some resources to measuring our systems, how do we really know what to improve? We upgraded the SQLServerCentral servers to SQL Server 2017 this year (2018), and I've been wanting to enable the Query Store. I've been slightly hesitant with over 75,000 air miles and 5,000 driving miles on the road since the upgrade. Being distracted and out of my routine isn't the best way to document and carefully observe the effects of a change. Not to mention concerns over data leakage for a company bound by the GDPR. After a little discussion and debate, and my schedule slowing, I'm looking to change that soon. I don't expect that a lot of improvement at SQLServerCentral from changing this, as our third party forums and much of the internal code is batch SQL, and quite a bit generated on the fly. However, there are some stored procedures, and I might be very wrong. While we're over provisioned with resources to avoid any performance problems, I do expect that we'll learn a few things. I hope we find places to better tune code, and with some documentation of the process, hopefully some of you out there might spot things our team doesn't. If you've got stories of the QDS working well or not well, let us know. Certainly let Microsoft know as well. The QDS is a major part of the SQL Server platform improving in the future and there are enhancements in SQL Server 2019. While I don't know that the QDS and some of the automatic tuning features remove the need for a data professional to watch a system, I'd like to think they do provide opportunities and insight for how we might better structure and develop applications, as well as help us find better patterns that are useful in our initial database coding. If you've got stories, Erin Stellato wants to know (and she has a few in the post). If you're concerned about overhead, read her other post. If you're confused, we're working on some articles to help you learn more. Give the QDS a try, especially if you've got some less critical systems. Part of our job is learning how to use new tools, and this is one that ought to be on most DBAs ToDo list. Steve Jones from SQLServerCentral.comJoin the debate, and respond to today's editorial on the forums |
| The Voice of the DBA Podcast Listen to the MP3 Audio ( 4.4MB) podcast or subscribe to the feed at iTunes and Libsyn. The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. | |
|
|
| ADVERTISEMENT | | Redgate University Self-paced online training courses with easy to follow classes on getting started, exploring advanced features, and making the most of Redgate products. Learn the fundamentals, best practices, and top tips from the experts - Redgate’s Microsoft Data Platform MVPs and engineers. Start Learning |
| | Data Masking: Insights & Actions Tuesday 27 November, 18.00-18.30 GMT / 12.00-12.30 CST - In this 30-minute webinar, Microsoft Data Platform MVP Kendra Little will explore key challenges and recommendations to prevent exposure of private data in your next data breach, featuring insight from Gartner’s 2018 Market Guide for Data Masking. Register now |
|
|
|
| | | Database development practices are more integral than ever to DevOps success. How are we saving time, automating processes, deploying more frequently, all whilst keeping business critical data secure? Take part in the survey for an advanced copy of the research report, and a chance to win a $250 Amazon voucher. More » |
| Deepak Prasad Sahu from SQLServerCentral.com Data Migration Assistant (DMA) to Check for SQL Server Compatibility Issues and Perform assessment when Migrating to Azure SQL Database or to SQL Server on an Azure Virtual machine. More » |
| Additional Articles from MSSQLTips.com In this tip we look at how you can monitor Azure health to know if there are any issues that may interupt your services running on Azure. More » |
| Jason Brimhall from SQLServerCentral Blogs The other day, I shared an article showing how to audit database offline events via the default trace. Today, I... More » |
| Carlos Robles from SQLServerCentral Blogs Have you ever imagine you can determine the version of SQL Server from a bak or a MDF file? I... More » |
|
|
| | Today's Question (by Steve Jones): If I run this query: SELECT * FROM dbo.OrderHeader AS oh WHERE oh.Status = -100 I get no rows returned. What's confusing to me is I have this code in a stored procedure. DECLARE @status INT; SELECT * FROM dbo.OrderHeader AS oh WHERE (status = @status OR @Status = -100) AND oh.OrderTotal > 0; If I pass in status 1, I get the correct rows for status 1. If I pass in -100, what do I get? |
Think you know the answer? Click here, and find out if you are right. We keep track of your score to give you bragging rights against your peers. This question is worth 1 point in this category: WHERE CLAUSE. We'd love to give you credit for your own question and answer. To submit a QOTD, simply log in to the Contribution Center. |
|
|
| Yesterday's Question of the Day |
| Yesterday's Question (by Steve Jones): I have this code: DECLARE @tags NVARCHAR(400) = N'Eagles,,Broncos,,Seahawks,Ravens' SELECT value FROM STRING_SPLIT(@tags, ',') How many rows are returned? Answer: 6 Explanation: The Split_string() function spluts the stgring based on the separator (,) and returns all values. The empty strings or spaces are returned as well. Ref: STRING_SPLIT()- click here » Discuss this question and answer on the forums |
|
|
| Database Pros Who Need Your Help |
| Here's a few of the new posts today on the forums. To see more, visit the forums. High memory utilization on SQL Server - Hello Gurus, I had emailed earlier but didn't get any response and googled but didn't get enough info: We have a prod... Learning SQL Server 2017 Administration - Is there a good book or material to learn the product from a DBA perspective. I will probably take the... Inserting a new row into a table using a cursor - Hi all, I need help. I hope someone can provide some info. I have provided the SQL code below. Please note on... sql server 2016 express installation headache - I installed sql server express 2016 on a windows 2016 server. Using the same extracted software, I installed SSMS using... SQL High Availability Group Over two different locations - I know this can be done or believe it can be but as I am no network specialist I am... Inner joins - Hi all. Our current version is 2008 and we are going to migrate it to 2016 or 2017. In many stored procedures,... Passing a parameter inside a statement - Hi there, need some help on this: 2012 upgrade advisor issue - Hi, I was trying with testing upgrade advisor. Mysource machine- sql express 2008 R2 I have 2 stored procs here which uses discontinued... MSSQL Server stopped to Initiate the Service - Hello, Please need your help! I have SQL Server 2012 and stopped to start the service unexpectedly. I tried a lot... Converting large excel spreadsheet to normalized data in SQL 2012 - Hi everybody, I have a large excel spreadsheet created by finance user that contains several decades worth of sales data. Here is... SSIS VS 2015: What SSIS task should i use to check whether there is any Excel file in a directory? - I need in my package to make sure that the destination folder contains no .xlsx files, and then depending on... |
|
| 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. Feel free to forward this to any colleagues that you think might be interested. If you have received this email from a colleague, you can register to receive it here. | This transmission is ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved. Contact: webmaster@sqlservercentral.com |
|
|