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

Database DevOps Recommendations

The DORA organization is constantly researching how to better produce software at any organization. This is similar to work done by Carnegie Mellon Software Engineering Institute many years ago. They are trying to determine what things help engineers do better work and produce high quality software.

On the DORA site, there is a database change management page on their site, where they recommend approaches to managing database schemas. The main thing that they talk about is treating all schema changes as migrations, which is something many people do. However many also like a desired-state-configuration approach, where they just deploy everything from dev (or QA) to prod in a state-based flow.

Both can work, but I do think as software matures (and becomes legacy), migrations are preferred. The article lists lots of frameworks in different languages. Flyway is among them, which is the product on which I work and sell at Redgate. If you haven't looked at a migrations framework, I'd recommend you do so. They do really give you a tremendous amount of control and flexibility.

The other thing they recommend is using a zero-downtime change approach. They list a few strategies that you can use make changes without impacting clients. None of these are hard, but they require a little coordination with application developers, as well as some patience in splitting changes across multiple deployments.

They do also recommend considering a NoSQL database since you don't have downtime from schema changes, but my view is that you're likely making trade-offs that aren't worth in. If you read that paragraph, my guess is many application developers read everything but the last sentence, or they dismiss the last sentence. Then they just start developing against a NoSQL database platform and expect it to magically be better. It might be, but it might not work as well.

The one thing I wish they had a better answer for was how to measure our work as database developers. This section doesn't give you any concrete things to measure, just some suggestions, which are often hard for people to implement in their environment. Most of us don't have salary or time numbers for others, and need more help in trying to determine how to measure changes. Maybe the one good measurement to aim for is 100% of database changes made by automation, rather than manual execution.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Date and Time Calculations Made Easy with EOMONTH, DATEDIFF, and DATEADD

omu from SQLServerCentral

Learn how to work with dates and calculate particular dates or elapsed time periods with some of the functions available in SQL Server.

External Article

Exploring the SQL Server CHOOSE Function

Additional Articles from MSSQLTips.com

I preface a lot of what I write with whether or not it is for a “practical” use. One of the Simple Talk authors used this function in a forthcoming article. and I realized I hadn’t heard of it before (or I forgot about it… which is not completely unlikely.) The practical use was to generate some data and have at least a little variety to the values.

Blog Post

From the SQL Server Central Blogs - Secure Azure SQL Server Backups Using Managed Identities

BLOB EATER from All About SQL

I do believe most people know about the ability to backup your SQL server databases to URL (from Azure VMs).  If you recall you would use the storage key...

Big Data Analytics cover

Big Data Analytics with Spark: A Practitioner's Guide to Using Spark for Large Scale Data Analysis

Site Owners from SQLServerCentral

Big Data Analytics with Spark is a step-by-step guide for learning Spark, which is an open-source fast and general-purpose cluster computing framework for large-scale data analysis. You will learn how to use Spark for different types of big data analytics projects, including batch, interactive, graph, and stream data analysis as well as machine learning. In addition, this book will help you become a much sought-after Spark expert.

 

 Question of the Day

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

 

Decoding the Collation II

In a collation setting, like Latin1_General_100_CI_AS_KS_WS_SC_UTF8, what does the WS mean?

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)

The TEXTSIZE Default

What is the default value of SET TEXTSIZE?

Answer: 4KB

Explanation: The default is 4KB, and if what is set if you run SET TEXTSIZE 0 Ref: SET TEXTSIZE - https://learn.microsoft.com/en-us/sql/t-sql/statements/set-textsize-transact-sql?view=sql-server-ver16

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 2019 - Administration
Size of DB on physical disk doesn't match Disk Usage by Table report - Hi everyone I am looking at the size of my db on disk (ie c-drive) and comparing it against SS report Disk Usage by Table.  The size of the mdf file on my storage drive is close to 37 GB.  The sum of all tables and indexes (columns Data (KB) + Indexes (KB)) on the […]
SSIS Won't Create Log Entries - Hi everyone My SSIS package will not log to sysssislog.  I am not sure what to do to troubleshoot.  Can someone please provide some guidance on what I can do to help fix this? Setup configuration: The configuration manager I use is the same one I use in SSIS when I have tasks that read […]
SQL Server is terminating in response to a 'stop' request from Service error - Dear All, In one of the server its repeatedly restarting sqlserver services and not found any thing in logs except this Message SQL Server is terminating in response to a 'stop' request from Service Control Manager. This is an informational message only. No user action is required. please help to find some solution to fix […]
SQL Server 2019 - Development
Update particular record in a table - I need to update greatherthan8 (category) record to Missing (status) if the same member is in different (category) but having same (status) and that also only when they are  compliant. for example 123 PID i have both lessthan8 and greaterthan8 (category) but having same (status) that is compliant so for this member 123 for greaterthan8 […]
SSIS giving "Error converting data type varchar to float" error - issue resolved.
General Cloud Computing Questions
Recommendation required for Ingest, Validate, Transform Client Data - Hi everyone, Our company receives data sets from over 100 clients on a monthly basis. A single file may contain as few as 100 records, while some data sets are split across up to 5 files containing up to 15 million records in total. The client may send few types of files: Inforce, Premium, Claims, […]
Reporting Services
Report Server Configuration Manager - The target principal name is incorrect SSL - SQL Server SSRS 2022. Running into ' SSL Provider, error: 0 - The target principal name is incorrect.' in the Change Database setting. Report Server Configuration Manager - Database - Change Database - Choose an existing report server database. - Test Connection I am able to log into the SQL Server in SSMS without checking […]
Report Server Configuration Manager - Change Database - SSL Error - SQL Server SSRS 2022. Running into ' SSL Provider, error: 0 - The target principal name is incorrect.' in the Change Database setting. I'm trying to set the database in the configuration manager and when I click on 'Test Connection' or 'Next' in the 'Change Database' popup box, I get that error. Report Server Configuration […]
SQL Server 2022 - Administration
Third party backup softwares - Hi Team, Can you someone suggest a few good third part backup tools, with good speed? The requirement is looking for a tool that should work without affecting db performance, in a way it should take a snapshot of the database. Ashru
How to take a backup as a .bak file while omitting some tables? - Hi Guys, I'm not sure if this is possible or not, but let me explain my situation. I have a scenario where I need to create a job that takes a backup(With Compression), keeps recent backups, and deletes older ones based on the date. The problem is, my database is quite large, and I don't […]
How do you keep track of the purpose for SQL Logins? - Wondering how others keep track of the purpose for SQL Logins?  I'm not talking about Windows Logins since you can put notes in Active Directory. We have different systems that use SQL logins and I have a hard time remembering what they are used for, such as just upgrades or regular use by the system. […]
Just a rant about the SQL Server 2022 upgrade - Upgrading an instance of SQL Server 2019 to SQL Server 2022 - I am so glad we're doing this in our test environment. During the install, got a popup about a missing file C:\Windows\ProPatches\msoledbsql_18.7.4_x64.msi Try again fails, obviously - I have no idea why they even have "try again" as an option, the file is […]
SQL Server 2022 - Development
2022 SSIS PackageFormatVersion? - Recently I upgraded my ssis package from 2016 to 2022, but package format version is showing 8. Is it correct?
Parse XML data from SQL table using temp tables and variables - Hello SSC, Happy Friday! I have to optimize a process that uses dynamic SQL to parse XML data. This is a daily process that is taking a long time to complete, and the data is not available until the afternoon. I installed SQLXML 4.0 and was able to SELECT nodes from the XML column directly, […]
Internationalisation - Quick one I hope in case I'm heading off in entirely the wrong direction! I've been working on a product for some time now that had an entirely UK-only customer base. The powers that be now want to flog it to Australia and the ROI. For one reason or another, there are a few places […]
 

 

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

 

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