SQLServerCentral - www.sqlservercentral.com

A community of more than 1,600,000 database professionals and growing

Featured Contents

The Voice of the DBA

Dealing with Technical Debt

Stop for a minute and think. How much technical debt do you have in your code? Let's make this easy, take a break from this, close your eyes, and take thirty seconds or so and think about just your code. How much would you rewrite or redo if you could?

Now, stop and think for another minute. How do you measure the amount of debt? What's your metric? Leave a note in the discussion after you finish this and let us know.

There's an article from a project manager about technical debt and how his team decided to measure this in their organization. They actually set a series of metrics for things they cared about and assigned an actually dollar, well, pound sterling, value to each. They then totaled these for all projects and came up with a total debt number. They then track this, incurring new debt or paying off older debt over time.

I think that's an interesting idea. I don't know that the debt needs to be money, but I do think money is a little better than some abstract metric like tickets or requests. Money is something many of us are familiar with and we hold debt. Assigning a concrete value does let us measure where we stand in a way that we can better relate.

Just like financial debt, not all technical debt is bad. Sometimes debt lets us get more things done sooner than we might otherwise be able to do. We do need to take shortcuts at time in development to get a prototype working, or deliver a feature or meet some other goal.

It is easy to overdo things, and just like with finances, overextend ourselves. Paying down that debt can prove to be a struggle in both cases, perhaps even crippling our ability to tackle any other projects.

If you think about technical debt now, do you view things differently? Do you have a measurement system? Can you tell if your incurring or paying down debt? It might be valuable to implement something and ensure you don't keep building up more than you can handle. It might even be something to show your manager and get some time to fix a few bugs.

Steve Jones from SQLServerCentral.com

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


The Voice of the DBA Podcast

Listen to the MP3 Audio ( 3.6MB) podcast or subscribe to the feed at iTunes and Libsyn. feed

The Voice of the DBA podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music.

ADVERTISEMENT
SQL Provision

SQL Provision: Create, protect, & manage SQL Server database copies for compliant DevOps

With SQL Provisions virtual cloning technology, databases can be created in seconds using just 1MB of storage, and sensitive data can be anonymized or replaced with realistic data to ensure it is protected as it moves between environments. Download your free trial

Webinar

Extend DevOps to Your SQL Server Database  

Wednesday 13 March, 17.00-18.00 GMT / 12.00-13.00 CDT - Discover how implementing Redgate’s Compliant Database DevOps solution to your SQL Server Database estate helps you protect business-critical data and improve the efficiency and quality of your software delivery. 
Register now

Featured Contents

 

Isolation Levels in SQL Server

Sucharita Das from SQLServerCentral.com

Details discussion on the different isolation levels available in SQL Server More »


 

A Re-Introduction to HIPAA and SOX

SQL Provision can help organizations ensure compliance with regulations such as HIPAA and SOX. But what exactly are these legislations asking of DBAs and how does this impact the work you do? Robert Sheldon provides an overview of the two US regulations in this four-part series. More »


 

Using Azure Resource Manager Templates To Provision Azure SQL Databases

Additional Articles from Database Journal

Azure provides a number of different methods that can be used in order to implement and configure its resources. Each of the methods differs to some extent in regard to functionality and intended use cases. More »


 

From the SQLServerCentral Blogs - Using the Sequence Object to Generate Reference Numbers

Matthew McGiffen from SQLServerCentral Blogs

The SEQUENCE object was added to T-SQL in SQL Server 2012. It’s reasonably well known to DBAs, but less so... More »


 

From the SQLServerCentral Blogs - Analyzing Heart Disease risk using Key Influencers AI visual in Power BI

Arjun Sivadasan from SQLServerCentral Blogs

The Gartner Magic Quadrant for 2019, announced earlier this month, names Microsoft the leader in Analytics and Business Intelligence Platforms.... More »

Question of the Day

Today's Question (by Steve Jones):

I want to change the default data directory on my SQL Server on Linux installation from /var/opt/log to /prod/log. What command should I run?

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


We keep track of your score to give you bragging rights against your peers.
This question is worth 1 point in this category: SQL Server on Linux.

We'd love to give you credit for your own question and answer.
To submit a QOTD, simply log in to the Contribution Center.

Yesterday's Question of the Day

Yesterday's Question (by Steve Jones):

I connect to a SSH session on my SQL Server on Linux 2017 Ubuntu server host. Only the database engine was installed, but I want to install the command line tools. How do I do this?

Answer: Run "sudo apt-get install mssql-tools unixodbc-dev"

Explanation:

Once you have the Microsoft Repository keys added, you can use apt-get to install the mssql-tools package and the unixodbc-dev package.

Ref: Installing tools - click here


» 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 : SQL Server 2017 - Development

Calculate the median - What is the fastest way to calculate the median


SQL Server 2016 : SQL Server 2016 - Administration

Security roles - All, Firstly I'm not necessarily asking for a complete answer. I'm happy to be pointed in the right direction to solve...


SQL Server 2016 : SQL Server 2016 - Development and T-SQL

table relationship - How do you determine table relationship ie 1:1, 1:many, many:many?

sp_OAGetProperty always returns a NULL - I found the following code online and was trying to run it but I am not getting back the XML....

Baffling results - I have two stored procedures that are functionally identical. I won't bother to post them as the queries themselves are...

Alternate Query for better performance - Hi, I have two massive tables, Order Header and Order details, I need to join these two tables. I need to...

Query runs slow when executing under the context of a different DB - I am trying to understand this behavior but when I try to use the below code and execute it in...


SQL Server 2014 : Administration - SQL Server 2014

sql job taking more time - Hi All, Need some advice on troubleshooting sql jobs. We have a ongoing performance issue on one of our Production server. ...


SQL Server 2014 : Development - SQL Server 2014

how to set value of variable = variable + string - In subject line of email I want @Subject to return "'Submission at 10/03/2019 22:46:34". Concatenating with + and quotes isn't working....

Select latest and 2nd latest date rows per user - I have the following query to select rows where the LAST_UPDATE_DATE field is getting records that have a date value...

sent SQL query as formatted Excel .xlsx via email - I already have a working stored procedure that exports sql query data set into a .csv file and emails it.  Works great. Now I...

why did WHERE EXISTS delete the contents of whole table? - the inner query returns only 36 rows, so I expected the DELETE WHERE EXISTS to delete only 36 rows.  But...


SQL Server 2012 : SQL 2012 - General

The transaction log for database is full due to 'CHECKPOINT' Error: 9002 - Hi to all, I'm puzzled ! Running a database on an older server stoped executing its jobs all of a sudden. Digging into...

Does the Order of Tables in the Join clauses of the Update Statement Matter - Suppose I have 3 tables as seen below: I would like to update the Name column of the Manufacturer Table based...


SQL Server 2012 : SQL Server 2012 - T-SQL

Subset rows with opening and closing balance - Hello All, I trying to get result as mentioned below (excel format for illustration purpose only).  I try using my script and...

How to round a value in a varchar column ? - Dear Forum, I have a strange requirement to round a value in a varchar column in MS SQL*Server 2012. I know...


SQL Server 2008 : SQL Server 2008 - General

nvarchar to smalldatetime - Im currently working on updating company database in which on one of the tables  the 'CreateDt' is in the nvarchar...


Programming : General

Query a dynamic date range based off current month - I’m trying to determine which month I’m in so I can setup aSSIS package to auto run and drop off...


Data Warehousing : Analysis Services

SSAS users randomly losing connection - Hi all We've got 5 multidimensional cubes and access is granted by AD groups. There is one role per cube with a...


SQL Server 7,2000 : T-SQL

Getting SID from Active Directory - SID transformation problems - Hi all, here is the issue: we had an old xp that gets SID from AD, using a domain user name (i.e....

This email has been sent to newsletter@newslettercollector.com. 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.
Feel free to forward this to any colleagues that you think might be interested.
If you have received this email from a colleague, you can register to receive it here.
This transmission is ©2018 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
Contact: webmaster@sqlservercentral.com