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

Daily Coping Tip

Give sincere compliments to people you talk to today.

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.

The Test Mistake

Last year a company was testing their software in a dev/test environment and accidentally sent out an "Integration email" to their customers.  They blamed this on an intern, though a little jokingly, and plenty of people shared their own stories about making mistakes.

I did this once, and only once. I was doing some software testing on a copy of the production database and accidentally sent out thousands of emails to customers. I hadn't scrubbed the email addresses in the copy, but since I also hadn't scrubbed the data, customers got an "extra" email for their account and few complained. My boss, however, complained quite a bit and with good reason.

These days using production data in dev/test environments isn't really an acceptable practice. Plenty of organizations do it, and hopefully, they are taking precautions. Kendra Little wrote a little about what happened and what should be done, including scrubbing out sensitive data. Not enough people do this, though I am seeing more and more companies looking for solutions that prevent data release.

This isn't an intern's issue. I appreciate someone making a bit of a joke here, and hopefully, there were engineers that taught the intern something. The bigger issue is that we make mistakes as humans and our protocols and processes should expect that. This is one reason why adopting automation in our software process is important. Whether that's deploying code to the right production server or refreshing the non-production databases, we want to be sure that we limit the number of human mistakes.

There are always places where we will use humans to perform a process. Whether that's typing code or clicking something. It's entirely possible someone clicks the wrong button or types the wrong item. As much as possible, we can use automation to provide a safety net to prevent these issues from reaching customers. We can't prevent every mistake, but we can continue to improve our process but adjusting it over time. At the very least, we ought to prevent the same mistake from happening over and over.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Can We Please Stop Sending Passwords Over the Wire?

maxtardiveau from SQLServerCentral

While analyzing SQL Server's network protocol, I came across a weird fact: when a database client logs in using SQL Server authentication (as opposed to Windows authentication), it has to send the user's password to the server, in blatant violation of common security guidelines. At first, I couldn't believe it; SQL Server generally does an […]

External Article

Eight Azure SQL configurations you may have missed

Additional Articles from SimpleTalk

Azure SQL Database has been around for over ten years and is constantly evolving with new capabilities and options. Dennes Torres explains 8 features and best practices of Azure SQL Database.

External Article

Join us at SQLBits, March 8-12

Additional Articles from Redgate

SQLBits is back online and in-person from March 8-12 and this year they’re taking us all to the Arcade! Register to get access to our exclusive pre-con and conference sessions run by Grant Fritchey, Kathi Kellenberger, and Steve Jones, as they talk database. And get a 10% discount code when you register using REDGATE274.

Blog Post

From the SQL Server Central Blogs - Understanding Volumes vs Storage Pools

John Morehouse from John Morehouse | Sqlrus.com

In hindsight, I should have done this differently. In a previous post I discussed how I carved up 18TB of storage into various storage pools.  Now that I have...

Blog Post

From the SQL Server Central Blogs - Extended Events Session Properties

Grant Fritchey from The Scary DBA

I like Extended Events and I regularly use the Session Properties window to create and explore sessions. I’m in the window all the time, noting it’s quirks & odd...

 

 Question of the Day

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

 

Synchronous XE Targets

Which of these Extended Event (XE) targets is processed synchronously?

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)

Azure Monitor Storage

If I use the Azure Monitor service to gather metrics and then alert based on data, how long is the data stored in this service before I would need to archive it to another storage location?

Answer: 93 days

Explanation: The data is stored for 93 days, after which it is deleted or you can have it moved to Log Analytics. Ref: Azure Monitor FAQ - https://docs.microsoft.com/en-us/azure/azure-monitor/faq

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
Help with proper indexes - I am new to sql server and hav been researching indexes but I am still not sure on the best practice for indexes for one of my tables.  The table currently has over 12 million rows and has a primary key that is just and auto id field. I have several fields we usually search […]
SQL Server 2016 - Administration
Installed SQL 2019 and trying to uninstall 2016 stuff and am unsuccessful. - I have 2 items left in Add remove programs: SQL 2016 and 2016 setup I have ran through the SQL 2016 uninstall several times but it does not allow me to remove SQL Client Connectivity SDK. I check it and then it goes to the Ready to Remove and Edition is blank and Action is […]
Avg Disk Queue Length Issues - Hi All, We are running a production system with MS SQL2016 Std and for the past year or so things have been going well... Then all of as sudden about 1 month ago I started recieving complaints about Server Timeouts. I used Perfmon to analyze the Server and found that Avg Disk read and write […]
SQL Server 2016 - Development and T-SQL
Question About Deadlocks - Hi, my understanding of deadlocks is that 2 queries become deadlocked if query 1 locks table A and then wants a lock on table B while query 2 locks table B and then wants a lock on table A. We have had a deadlock where one of the queries only uses a single table, so […]
SQL 2012 - General
How to get rows that have sourctype 484456 only when group by GivenPartNumber_No - I work on sql server 2012 i need to get rows that have source type 484456 when group by two columns group by GivenPartNumber_Non and vcompanyid so i need to make select query display every group of rows by GivenPartNumber_Non and vcompanyid have source type 484456 only may be this group one row or 2rows […]
DML STATEMENTS ON OLTP TRANSACTION - Hi Good morning. What is the better approach when applying DML statements on the OLTP transactions? when updating the rows in a table delete the rows and insert new rows or update the rows with a new column value. Please give your valuable advice. Thank you.
SQL Server 2019 - Administration
Using Availability groups with a named instance - Hello, I'm working on migrating from an existing multiple FCIs to Instances with availability groups.  I'm attempting to keep the impact to my customers as small as possible so I'm wondering about connection strings with availability groups. Current Environment, multiple instances some as named instances in existing FCI SQL1 and SQL2\NamedInstance Proposed new environment. Physical […]
Upgraded SQL 2008 to 2016 years ago and never removed 2008 correctly. - Upgraded SQL 2008 to 2016 years ago and never removed 2008 correctly and now on 2019 I am having issues uninstalling 2008. I removed the setup files by accident and now in the add remove programs is SQL 2008 but I can't get it uninstalled correctly. Is there a way to do this? Also, I […]
Cannot add SQL Listener to Always On - Hi all Hope someone can assist with my issue. I have a two node cluster running SQL Server 2019 ENT Edition CU14 and the nodes are on different subnets. Always On has been added and working fine however I can't add the SQL Listener, keep getting the following error: "None of the IP addresses configured […]
SQL Server 2019 - Development
Sub Query with incorrect column name doesn't error - Hi, Is there a reason that the following query doesn't error? select * from sys.objects where parent_object_id not in (select parent_object_id from sys.columns) The column parent_object_id doesn't exist in the sys.columns table, yet the query runs without an error. If it's a "not in" query, then an empty resultset is returned, whereas if it's an […]
Update records used in Group By - I have this query to create a summary of donations SELECT [DonorId], SUM([DonationAmount]) AS TotalDonation FROM [dbo].[Donation] GROUP BY [DonorId], [DonationYear] What I need to do is then create a single receipt for those records.  The receipt creation process can be run at any time (not just at year end) What method should be used […]
Amazon AWS and other cloud vendors
Facing issue with Step Function - I want to run a function every 2 mins but I want to start those 2 mins only after the excution of that function is complete. I saw that this is a usecase of Step Function so when I created my workflow. Start -> Run ECS Task -> wait(2mins) and now I want to run […]
General Cloud Computing Questions
Noob questions about Cloud computing - What made it so prevalent? - We're seeing everything going to the cloud these days, from data storage to phone systems. I don't fully understand what technologies have made cloud computing so prevalent and easier to implement. Is it due to Internet bandwidth? Better software?
Powershell
create file from xcel layout - I have an xcel file that based upon Cells defined will be used to create an output file with a .txt extension. All of the columns in xcel file are defined as "TEXT". The key to building the output file is based upon the xcel file definition. Xcel file example: A         B  […]
Analysis Services
Today my SSAS server died and I lost 500 DBs but I still have all DB files - The title sounds like a name to a new anime, and it's my daily life. All of a sudden, today after an update of Symantec Antivirus on the server (no relation, this was just the most recent change event), my poor SSAS server with 500 databases refused to start. The config of the server is: […]
 

 

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

 

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