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

Daily Coping Tip

Get moving; do something active 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.

It Isn't Worth Automating

Every year I'm responsible for a portion of the Database Weekly newsletters. I used to do half, but right now Kathi, Grant, and I are on a rotation. Our boss puts out a schedule each year, which tells me the weeks for which I am responsible. Each January I then set up a recurring appointment for Mon/Wed/Fri on my weeks to remind me to curate articles and write an editorial.

Each year I also think about whether or not I can automate this. Last year I spent a few hours looking into the Exchange APIs for creating appointments, at the C# code, and PoSh (which is a nightmare). I spent a few hours, got frustrated, and gave up, just manually creating appointments.

This year I took a slightly better approach and tried to figure out how long it takes to create an appointment. I got a stopwatch and went through the process. Each recurring appointment takes about 30 sec to create and (a repetitive) 15 clicks. I have 17 weeks, so this is about 9 minutes (rounding) to get this done.

That doesn't seem worth automating. In a decade, I'd spent 90 minutes doing this. I'm not sure I could automate it in 90 minutes. I might learn a new skill, but I don't do much calendaring, and honestly, I'm not sure I could do something I'd think would be reliable, portable to others, or even useful in other ways.

I've had a lot of tasks like this as a DBA or developer. They are often short tasks, things I do fairly rarely, and are not tightly defined. Often I just do a little manual work rather than spend too much time trying to automate things. In my life, I've found similar tasks, where I'm not sure the time spent building automation or the maintenance requirements over time, would be worth the effort.

I am, however, a big proponent of automation, and I think there are many places where the time spent is worth the effort. Periodically cleaning log files from servers, running data loads of know files, DevOps CI and CD processes, and more are worth the effort. Many people need these processes running often, and the work to get automation running becomes a time saver.

Not everything needs to be automated, or even should be. Certainly, when the manual time or effort requirements are small, it pays to do a little analysis. If you disrupt the way humans do their work, then be sure your solution saves time or effort. As technologists, we often reach for the scripting/programming tools to solve problems, but be sure that you include a little thought when you do to be sure the process is worth automating.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

SQL Server Dacpac in Azure Data Studio

Daniel Calbimonte from SQLServerCentral

Introduction This article will introduce you to the SQL Server Dacpac in Azure Data Studio. We will also learn about the Bacpac. In the Azure Data Studio, we have an extension named SQL Server Dacpac which allows us to deploy, extract Dacpacs, create a database from a Bacpac and export a schema and data to […]

External Article

Where's the best place to live as a DBA?

Additional Articles from Redgate

Got wanderlust? We thought it would be fun to look at where the best place to live in the world is as a DBA. Find the winners and weigh in on the debate here!

External Article

Power BI Zoom and Focus

Additional Articles from MSSQLTips.com

In this article we look at how to add the zoom feature to your charts and graphs in Power BI reports for a better user experience.

Blog Post

From the SQL Server Central Blogs - Looking at Activity Queue Times from Azure Data Factory with Log Analytics

Meagan Longoria from Data Savvy

I’ve been working on a project to populate an Operational Data Store using Azure Data Factory (ADF). We have been seeking to tune our pipelines so we can import...

Blog Post

From the SQL Server Central Blogs - DBO – Your Easy Homework Cheat Sheet Is Here

SQLRNNR from SQL RNNR

Every Database has a DBO or database owner set. Sometimes the owner is invalid, while most of the time the DBO is perfectly normal. It is easy to ignore...

 

 Question of the Day

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

 

Adding Time

I've got two columns in my table. One has a datetime value and the other has a time value. The data is something like this:
empidshiftstart        shiftlength
12022-01-02 08:00:00.00008:00:00.0000000
12022-01-03 08:00:00.00004:00:00.0000000
12022-01-04 08:00:00.00006:00:00.0000000
If I want to get the end time for shifts, which of these calculates this value:

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)

CosmosDB Organization

What is the organizational structure for Azure Cosmos DB?

Answer: A Cosmos DB account contains databases, which contain containers, which contain the data documents

Explanation: Cosmos DB requires an account. Under this account, you have one or more databases. In a database, you have containers that contain the documents. Ref: Azure Cosmos DB Resource Model - https://docs.microsoft.com/en-us/azure/cosmos-db/account-databases-containers-items

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 - Development
default values on table - I'm rewritting some data warehouse load procs. The current process is filled with isnull(name,'n/a') on the select that is inserting. They are wrapping all the values in the insert with isulls and setting to 'n/a' if null. Is this faster than simply having a default value set to 'n/a' on the table that we are […]
Access denied trying to move and rename files - I have a stored procedure that imports and processes data and at the end it is supposed to move the files to an archive file. set @moveProcessed = 'Move "'+@filepath+@filename+'" \\TRINITYSQL\Archive\"'+SUBSTRING(@filename, 1, LEN(@filename) - 4)+'_'+cast(Format(getdate(), 'yyyyMMddHHmmss') as varchar)+'.csv"' When i strip out the renaming stuff and just try to run it as a move command […]
Administration - SQL Server 2014
Named Instance SQL server - Hi, I have a SQL server that has two instances. However remotely it only recognises the first instance but without the name. For example Servername\instance1 and Servername\instance2 is on the server but it only recognises Servername. When I connect to that remotely I can see that it's the first instance only. Is there some setting […]
Development - SQL Server 2014
SSRS Rendering format Excel Change ? - I was wondering if anyone knew how I can change the Excel rendering format in the reportserverconfig file so the default cell format is text and not General. If not, is there any way to format my fields in the stored procedure so when I download to Excel it formats as text? Thanks
SQL 2012 - General
Voice-Based Transport Enquiry System - Hello All, I am working on SQL project which is a Voice-Based Transport Enquiry System and I am looking the source code of this project. I have found one code from with the help of this post. Basically, This project is while traveling, you may have come across a long queue of commuters waiting for […]
SQL Server 2019 - Administration
Multiple instances to an OS using Always ON - This is for a sanity check to make sure I am correct in my thinking - Current Set up - Server farm 80GB memory on server 2 discs - C:OS E:Data - This is many drives with guaranteed specific performance threshold (I may not be saying that correctly) The discs on the SAN are setup […]
Do you need a process server w/ Tabular AS when processing during the work day? - We have multidimensional cubes that need to be refreshed throughout the day. We have a process server that process the cubes and then we sync the cubes to a business user facing server. We do this because business users are not able to query the cube while it is processing. We plan to migrate our […]
ownership chain - I am reading microsoft doc about owner chain, it says : quotes: --- USE AdventureWorks2016; GO CREATE USER [DP300User1] WITH PASSWORD = 'Pa55.w.rd'; GO CREATE ROLE [SalesReader]; GO ALTER ROLE [SalesReader] ADD MEMBER [DP300User1]; GO GRANT SELECT, EXECUTE ON SCHEMA::Sales TO [SalesReader]; GO CREATE OR ALTER PROCEDURE Sales.DemoProc AS SELECT P.Name, SUM(SOD.LineTotal) AS TotalSales, SOH.OrderDate […]
how many ways i can encrypt data in my tables in sqlexpress 2016 and 2019 - I have used xml for clause , varchars and image cols q1) Please tell me how many ways i can encrypt data in tables in sql express 2016 and 2019 yours sincerely
General Cloud Computing Questions
Anyone taking CS-8803-Systems Issues in Cloud Computing? - Curious if anyone it taking this class and how many hours you guys are spending per week and what you guys think about it. EDIT: I should share my experience. I am currently taking the course and spending maybe around 20~30 hours per week. The whole class is basically a group project as well. Have […]
Reporting Services
Changing Excel download rendering format ? - I was wondering if anyone knew how I can change the Excel rendering format in the reportserverconfig file so the default cell format is text
SSRS 2016
How to eliminate NULL data from columns in a tablix? - I have several columns in a row. I am not able to modify the query to eliminate NULL data. How do i eliminate data where only certain columns are NULL. If any of those columns I want to filter on have data, then I want the column to be show the data (even if some […]
General
Posted in the Wrong Forum - .
Layouts using flexbox - I am learning flex-box right now , i just wanted to know how do you guys implement it and where it can be used? And if you guys know how to make layouts using flex-box that would be great. I know that grid is more popular than flexbox but still i would like to learn […]
Security and Auditing
GDPR and Backups - Although GDPR has been in place for some time, my organisation has had a dispensation to essentially ignore it up until now. The dispensation was because the contract from the government we were on was an interim basis while a new provider got their system online. The thinking was we'd be turning off our system […]
 

 

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

 

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