Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

Daily Coping Tip

Get outside and observe the changes in nature around you

I also have a thread at SQLServerCentral dealing with coping mechanisms and resources. Feel free to participate.

For many of you out there working in a new way, I'm including a thought of the day on how to cope in this challenging time from The Action for Happiness Coping Calendar. My items will be on my blog, feel free to share yours.

What's the Edge Case?

Quite a few of the bugs we see in production systems come from data that isn't handled well. Perhaps the developer never considered this data, or another bug lets data into a system that should never be recorded. These are often NULL values, but they could be other data values that are far out of the ordinary.

Where do we draw the line for edge cases? Is it anything that doesn't fit 95% of the data range? I see this number used in many fields, often manufacturing and other "physical endeavors". Is it the 80% rule, where we ensure 80% of data cases are covered, but 20% represent special handling?

It's an interesting thought because drawing this line helps us decide what level of data we need in our dev and test environments. We need enough data to represent what exists in production, but not much more. The less data we have, the faster everything moves, with much less friction in setting up, resetting, and moving these databases around.

However, the more bugs that slip through, the more we might need to ensure that we add more data to our development environments to mimic what is in production. Often we have used copies of production data, but there are plenty of issues with this. First, we often have less security in non-production environments and no shortage of data breaches comes from these systems. Therefore we might need to apply masking/obfuscation/pseudomization to values. Second, production databases are growing larger, often over 1 TB. While storage and bandwidth are cheap, they aren't free, and moving around 1 TB of data regularly, or even restoring it, can present resource challenges.

My preference is a representative set of data from production, masked and without PII, along with some randomness that might catch edge cases before we deploy changes to production. With that in mind, what's the edge case? I think I'd lean towards the 95% value, but ready to raise that higher if we discovered many bugs.

How many are many bugs? I might apply the same standard. If more than 5% of bugs filed are data issues, we need better dev/test data.

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
 Featured Contents
SQLServerCentral Article

Tutorial to Create a Power BI Report Using PostgreSQL

Daniel Calbimonte from SQLServerCentral

Learn how you can use PostgreSQL data in a Power BI report.

External Article

How monitoring tools can help you excel at your job

Additional Articles from Redgate

Want to make the most of your scarce resources and do your job even better? Join us at PASS Data Community Summit, from November 15-18, and learn how database monitoring tools can speed up your maintenance tasks and give you the time to support strategic initiatives.

External Article

Build Your Own SQL Server Central Monitoring Solution with PowerShell

Additional Articles from MSSQLTips.com

In this article, we look at how to use PowerShell scripts to query all of your SQL Server instances to build your own central monitoring solution.

Blog Post

From the SQL Server Central Blogs - Getting Started Speaking – #NewStarNovember

Steve Jones - SSC Editor from The Voice of the DBA

My journey might be somewhat unusual, but perhaps not. I started writing articles on the Internet at a few different places before I started SQL Server Central. There were...

Blog Post

From the SQL Server Central Blogs - SQL Homework – July 2022 – Getting ready for the next time you have to look for a job.

Kenneth.Fisher from SQLStudies

Back in July I suggested that you get your resume up to date. It’s something I’d wish I’d kept up ... Continue reading

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

The VALUES Limit

What is the limit for rows in a Table Valued Constructor?

Think you know the answer? Click here, and find out if you are right.

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Adding SQL Variant Data

Answer:

Explanation:

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.


SQL Server 2017 - Administration
Db is slow - Hi SQL Gurus, One of our production database is running very slow. I checked blocking , I didn't see any blocking. Also, check for running processes and look for any waittype. I see null. How to get more insights on a running sql server for a specific databases? What all can he checked in this […]
Datafile full, but it isn't a table - Hi all, I currently have a SQL Server 2017 with a filegroup full. I temporarily added a file as a workaround, but need to solve the issue. The problem is that it is not a table that is filling up the space, numbers are completely different (table size will make it currently around 10% of […]
SQL Server 2019 - Development
Float - Hi, I am having problem with generating a Float which generates a output of adding 1 every second month. Currently, I have a solution of dividing the target by 365, but then I wont get the value to change exactly when the month starts. My data consists of date, employee id and target Hope one […]
Sql subquery poor perf - Need to rewrite to optimise - I have a sql query as below which takes endless time to execute. Any help in rewriting this query to better way would be appreciated greatly. Select PolNr , (select value from tblPolSpec d where m.PolNr=d.PolNr and d. Category='Holder' ) as HolderName , (select value from tblPolSpec d where m.PolNr=d.PolNr and d. Category='Status' ) as […]
Issue with converting Varchar to Numeric so I can add them - I have this so far . . . SELECT * INTO #tempValue FROM ( SELECT t.HTS_98_Value, t.HTS_99_Value, t.HTS_B_Value, t.HTS_A_Value, t.HTS_C_Value, t.Customs_Entry_Number, SUM(convert(numeric,replace(isnull(hts_a_value, '0'), '','0')) + convert(numeric,replace(isnull(hts_b_value, '0'), '','0'))) AS New --HTS_A_Value + HTS_B_Value) AS new --+ HTS_B_Value + HTS_A_Value + HTS_99_Value) AS Header_Val FROM #temp1 t GROUP BY t.HTS_98_Value, t.HTS_99_Value, t.HTS_B_Value, t.HTS_A_Value, t.HTS_C_Value, t.Customs_Entry_Number ) […]
Tools needed for designing SSIS package - Hi All, I am using SQL 2019 developer edition. I want to develop and test SSIS package, which tool I need to download and install it. Searched in google and found Visual studio , Azure studio and SSDT etc., Do I need all three.
SQL Azure - Development
Azure Data Studio Intellisense Cache Notebooks vs SQL Files - Hi, I've noticed that my SQL notebooks will take a long time to refresh the intellisense compared to a .sql file. When I create a new object, no matter how many times I "Refresh Intellisense Cache", the object will not show up in intellisense until I close the notebook, reopen, reconnect, etc (and even then, […]
General Cloud Computing Questions
Cloud Hosting - Hello. How much does it cost to host an Unifi controller in the cloud (Linode, Digital Ocean, AWS, Azure)? I'm an individual user with a VERY small setup (two desktops, iPhone, and an iPad). My Unifi setup will be: USG AC-Pro Switch 60W I'm wondering if anyone else with a small setup has real-world experience […]
Azure Data Factory
Question about using Azure Data Factory with MySQL - I went ahead and signed up for the free Azure trial and created my first data factory last night. Right now I have 3 databases running on my computer. SQL 2019 Developer Edition Full Install SQL 2017 running in Docker container MySQL running in Docker assuming it's the most recent version. Using Data Factory as […]
Reporting Services
Multi valued parameter is passing multiple values as one string - So I've got this report that has two date parameters and a multi choice var char parameter. When I choose 1 option it runs fine, but when I select more than one it failes because the parameter is being passed as a single string with no commas seperating the values.   I tried adding an […]
SSRS 2016
Definition of the Report is invalid when Deploying Report - I'm a little new to SSRS and I hope I can get some direction. I have a Report which consists of 4 different Subreports all in their own rectangle to facilitate page breaks (See attachment). Some of the Subreports were copied and slightly altered (new text) and some are used as is. They all run […]
General
Unsecured site error in Edge Only - some of the pages showing unsecured in Edge even though the SSL certificate is binded (the same error doesn't happen in other browsers... The site is loading as IE5 compatibility mode) Can someone please help! its urgent.
Suggestions
Plase fix the "Post Offset" problem. - Clicking on post notifications takes us to the correct thread but frequently takes us to the wrong post.  I've determined that the issue is that posts on any given thread that are marked as "SPAM" are not counted in the "15 posts per page" count. Any chance of getting this fixed (along with the broken […]
Email Notifications is broken again. - Howdy folks... The email notifications for subscribed posts is broken and has been since about 26 Oct 2022.  At least that seems to be when I stopped getting them.  Others (on "The Thread") have confirmed this issue, as well. The emails for what followers post is fine, though.
MySQL
Best method to migrate 8 GB database from MSSQL to MYSQL - All, Best method to migrate 8 GB database from MSSQL to MYSQL. The server is in windows 2019 with express installed. I have used workbench with ODBC - It says all the time not responding I have tried to install VS 2019 and 2022, both are not working in windows 2019 server to test SSIS. […]
 

 

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.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

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