• Skip to main content
  • Skip to primary sidebar

DBA Diaries

Thoughts and experiences of a DBA working with SQL Server and MySQL

All Articles

Using SQL COALESCE to Find the First Non-NULL Value

May 10, 2017 by Andy Hayes 1 Comment

SQL COALESCE example

You are looking to find a way to find the first non-null value from a list of fields. In this post, we look at SQL COALESCE - a wonderfully useful tool that helps to solve that problem. To help demonstrate this, we will talk about a hypothetical scenario where a number of customer leads have been added to a table from different sources and the consistency of data found in … [Read more...] about Using SQL COALESCE to Find the First Non-NULL Value

How to Take a Backup of a Table in MySQL

May 9, 2017 by Andy Hayes Leave a Comment

Sometimes, there is a requirement to make a backup of a table in MySQL. For instance, there could be a data update planned, schema change needed or that it is necessary to work with a copy of a table, perhaps for some report. A possible approach to this is to run a full backup of the database to call upon if something goes wrong. This is feasible but sometimes not practical. … [Read more...] about How to Take a Backup of a Table in MySQL

SQL Server 2016 New Features – Multiple TempDB Files Configured at Server Install

June 12, 2016 by Andy Hayes Leave a Comment

New Feature of SQL Server 2016 configure multiple tempdb files

Configuring multiple tempdb files is not a new feature in SQL Server and has been a best practice for sometime to help ease and prevent tempdb contention which helps to increase the scalability of your SQL Server installation. Before SQL Server 2016, this was a task which needed to be carried out after the installation but one of the new features of SQL Server 2016 is the … [Read more...] about SQL Server 2016 New Features – Multiple TempDB Files Configured at Server Install

SQL Server 2016 New Features – Dynamic Data Masking

June 7, 2016 by Andy Hayes Leave a Comment

sql server 2016 dynamic data masking

Data security is always a hot subject and anything that database software vendors can do to enhance the security of data is usually welcome. One of the new features of SQL Server 2016 is the introduction of Dynamic Data Masking. As it says on the tin, the data is masked which prevents non-privileged users from seeing it. With Dynamic Data Masking in SQL Server 2016, … [Read more...] about SQL Server 2016 New Features – Dynamic Data Masking

SQL Server 2016 New Features – Live Query Statistics

May 26, 2016 by Andy Hayes Leave a Comment

enable sql server 2016 new features live query statistics

SQL Server 2016 Live Query Statistics provide a way to look into the execution plan to see what parts of the query are currently running. The advantage of this feature is that for a slow query, instead of having to wait for it to complete before the execution plan is available, it's now possible to view the execution plan in real time. Sometimes execution plans can be … [Read more...] about SQL Server 2016 New Features – Live Query Statistics

« Previous Page
Next Page »

Primary Sidebar

Categories

  • All Articles (82)
  • Career Development (8)
  • MySQL Administration (18)
  • MySQL Performance (2)
  • SQL Server Administration (24)
  • SQL Server News (3)
  • SQL Server Performance (14)
  • SQL Server Security (3)
  • SQL Tips and Tricks (19)

Top 10 Popular Posts

  • Using sp_change_users_login to fix SQL Server orphaned users
  • MySQL SHOW USERS? – How to List All MySQL Users and Privileges
  • How to shrink tempdb
  • How to Transfer Logins to Another SQL Server or Instance
  • How to Delete Millions of Rows using T-SQL with Reduced Impact
  • T-SQL – How to Select Top N Rows for Each Group Using ROW_NUMBER()
  • New T-SQL features in SQL Server 2012 – OFFSET and FETCH
  • How to Kill All MySQL Processes For a Specific User
  • Using exec sp_who2 to help with SQL Server troubleshooting
  • How to move tempdb

Recent Posts

  • How to Setup MySQL Master Master Replication
  • How To Use SQL to Convert a STRING to an INT
  • How to set up MySQL Replication Tutorial
  • How to Use SQL CASE for Conditional Logic in Your SQL Queries
  • Using ISNULL in SQL Server to Replace NULL Values

Search

Connect

  • Twitter
  • Facebook
  • Google+
  • RSS

About

  • Cookie Policy
  • Disclaimer
  • About
Copyright ©