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

Daily Coping Tip

Smile and be friendly to the people you see 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.

DevOps is Mostly About People

I was giving a talk on DevOps recently and one of the questions from a person in the audience was how to get others to buy in. This person also had complaints that "DevOps" wouldn't work because their boss wasn't interested.

I think these are great examples of things that many developers and managers don't think about when they look to embrace DevOps. While there is no shortage of technical articles and videos on how to introduce automation or deliver features in a new way, what gets lost is the need for cultural change.

DevOps is all about people. It's about learning to trust each other and work together. It's about adapting and changing how you write or deploy code to make the process smoother. It's about sharing your knowledge with others and learning from them. It's about being blameless and also accountable. It's about support for management to improve the software and the process.

It's about people.

The automation is cool and it's a lot of what is easy to demo and explain. HThat's becase I don't know the people involved in your environment and I can't explain how you get them to change. Instead, we tend to focus on the tangible things you can do. Use version control, validate and test with CI, deploy consistently with release servers, build packages that are versioned and reviewed. Those are the easy parts.

The culture is what really matters, both in development teams, in conjunction with ops teams, and with support for management. There is no magic to software development and DevOps doesn't bring any. All it helps you understand is that you need to be a team to build great software.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Data Flow Formatters - Flatten, Parse and Stringify in Azure Data Factory

arindamxs from SQLServerCentral

This article discusses the data flow formatters, Flatten, Parse, and Stringify, which can be useful when dealing with JSON data.

Technical Article

Metrics that matter for IT organizations on an agile journey

Additional Articles from SQLServerCentral

Measuring the wrong things is worse than not measuring anything. In this article, Mallika Gunturu explains the right things to measure for agile.

External Article

Searching a Flyway Database

Additional Articles from Redgate

As a database gets larger, and development more complex, so it becomes increasingly necessary to be able to search for strings in the source files and the database itself. Maybe you need to find when a table first got created, when a foreign key was added, or to find out which tables lack documentation. I'll show you how to answer these sorts of questions by running simple 'wildcard' searches on your Flyway migration files, or source files, as well as more targeted searches on certain parts of your database model.

Blog Post

From the SQL Server Central Blogs - How to Fix the Error “MySQL is running but PID file could not be found”

Tracy McKibben from RealSQLGuy - Helping You To Become A SQL Hero

One of our clients in Vietnam, his name is Son Vu, who is developing a website running on VPS (his homepage trainghiemmuasam.com) encountered an error that MySQL could not...

Blog Post

From the SQL Server Central Blogs - Thank You Tim!

Grant Fritchey from The Scary DBA

Ah, Tim Ford. I remember the time we were sitting at Ruth Kriss Steakhouse trying to figure out which of the two of us was the dumbest person in...

 

 Question of the Day

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

 

Python in Power BI

I want to use Python to import data into a Power BI Desktop report. If I have the need to pick a specific version of Python that is used to run scripts, what are my options?

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)

Consistent Time

I have two databases on two different instances. One is in London and one is in New York. Customers log data into these two databases in a table that captures the time that the client inserted the data. All this data is exported into a data warehouse for later analysis.

I want to set a default on the table for a column that will automatically capture the time the insert took place, in either location, but in a consistent way. Meaning that if one insert takes place in London at 12:00pm, another takes place in London at 12:02pm, and a third takes place in New York at 7:01am, these are properly ordered. With New York five hours behind, this would mean the data warehouse would have the first London insert, the New York insert, and the second London insert in that chronological order.

What should me default be for the column in this table if I want the most precision?

Answer: SYSUTCDATETIME()

Explanation: If I want datetime values to be accurate across time zones and comparable, I want to store data in a consistent time zone. To do this as a default, a UTC datetime function is needed. Both GetUTCDate() and SYSUTCDATETIME() get UTC time, but SYSUTCDATETIME has more precision. Ref:

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
Purging / deleting ExternalMailQueue which has around 700,000 records - What is the easy way to purge ExternalMailQueue ? I tried using END Conversation command but it takes lot of time. I dont want to retain any history. What is the quick and dirty way to clear all mail items including Queue.  
Migration of 2008 db to 2016 db causing varchar(max) issues - hi, I am trying to migrate databases and we have huge tables like 30million records , and migration is done using azure devops. So, during DMA (Data migration assistance) changes being  applied to tables , as we changed  a column i.e column A dataytype of varchar(max) to column nvarchar(max) taking for hours on that table. […]
SQL Server 2016 - Development and T-SQL
sys.object - I have a table that is empty and it should have data in it. I need to find a stored procedure or table(s) that populates this table. How do i modify this code to get what i need? DECLARE @ObjectName NVARCHAR(261) = N'sys.object' ; --===== Find the objects referencing our object by name. SELECT RefObjectName […]
QUERY HELP - Hello. I need help with the following query: declare @T table ( ID int not null primary key , VAL int null ); insert into @T (ID, VAL) values (1, 1000), (2, null), (3, null), (4, null) , (5, 2000), (6, null), (7, null), (8, null) ; select T.* , ( select S.VAL from @T […]
Development - SQL Server 2014
Query Help - Hello. I need help with the following query: declare @T table ( ID int not null primary key , VAL int null ); insert into @T (ID, VAL) values (1, 1000), (2, null), (3, null), (4, null) , (5, 2000), (6, null), (7, null), (8, null) ; select T.* , ( select S.VAL from @T […]
SQL 2012 - General
2012 new database & login auditing - Morning all, SQL 2012 Ent.  I want a job to run that will alert me to the creation of new dbs, logins, and certain permission changes to logins.  I can write my own checker & schedule but I'm wondering if you good people have a better way! If not thank you.
SQL Server 2019 - Administration
Import Agent job history from another server - Hello experts, I'm working on a SQL Server migration, and the clients just asked me to copy the job history from the old server to the new server. For some reason, no one has ever asked me to do this before, so when I was first setting up the new server, I just scripted out […]
AG failover failing - Duplicate IP error - Hi guys,   Testing our AG failover we noticed that we get an failure when moving to any node other that Node1 of our cluster. It is failing to bring the IP of the AG online due to a conflict.   When looking at the ipconfig output I can see that the IP for the […]
SQL Server 2019 - Development
Using LAG to return prior non null value - Hello, Thanks if you can offer any assistance. I am trying to use LAG to return the previous non null value but I am not getting my desired results. I added some comments in my code showing the desired results. I do not want to use a CTE. --Microsoft SQL Server 2019 --Build a temp […]
Can´t delete foreign key - Hi there, I try to delete a foreign key with ALTER TABLE [dbo].[Projektplanung] DROP CONSTRAINT [Projektplanung$tblLookupCountriesProjektplanung] GO But I have to cancel it and get Err 3737 afterwoods as it doesn´t finish. This worked for months now as this is built into a script where I delete the constraint and build it again after importing […]
Error converting data type varchar to numeric issue - I tried a lot of things to fix it, and no success. I have a field called MASTER_BOL_NUMBER . According to documentation it is CHAR.     I see that inside it has only blanks and numbers     When I try to CAST( MASTER_BOL_NUMBER as numeric) I am getting an error "Error converting data type varchar […]
Error converting data type varchar to numeric issue - I tried a lot of things to fix it, and no success. I have a field called MASTER_BOL_NUMBER . According to documentation it is CHAR.     I see that inside it has only blanks and numbers     When I try to CAST( MASTER_BOL_NUMBER as numeric) I am getting an error "Error converting data type varchar […]
Date vs Datetime recommendation - I'm looking for some advice: I'm taking in files that have birth dates, and other date fields that do not require any time portion. I was using datetime for all date related fields and tried to switch them all to DATE. When I then exported the data to Text files I noticed all the fields […]
Reporting Services
Create a report to count the # of days a physician has a case assigned - Hi,   I need to create a report that has created date, physician name, case #.  I need to display the following in the report. Average # of days a physician had the followig number of cases assigned: >6 >7 8 Here is my query. select a.accession_no, a.created_date, p.last_name, p.first_name, p.mid_name, p.full_name from accession_2 a […]
Create a report to count the # of days a physician has a case assigned - Hi,   I need to create a report that has created date, physician name, case #.  I need to display the following in the report. Average # of days a physician had the following number of cases assigned:   >6 >7 >8 Here is my query. select a.accession_no, a.created_date, p.last_name, p.first_name, p.mid_name, p.full_name from accession_2 […]
 

 

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

 

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