SQLServerCentral - www.sqlservercentral.com

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

Featured Contents

The Voice of the DBA

Lowering the Noise

Over my career, I've had the chance to work in a variety of environments of all sizes. I've managed systems that powered all sorts of applications, with a variety of requirements. In many cases, I've had certain databases that needed constant monitoring and care from me to perform as needed. I've also had other systems that the business used, but weren't necessarily critical. Those systems often had a lower priority for my attention if multiple problems occurred at the same time.

I've been meeting regularly with the SQL Monitor team as they try to enhance and tune the next version of their product. As the product has grown and evolved, and SQL Server advances, there are different types of counters and metrics that need to be tracked. One of the major goals is to ensure that they reduce the number of alerts for DBAs and sysadmins that don't require immediate attention or may be unnecessarily adding to someone's workload, at least for new installations. You might customize your system to include many alerts. To do this, we have to make decisions for the default alerts and threshholds, which can be a challenge.

That's been a goal of mine as an administrator as well. I don't want to get notifications or alerts of activities that are expected, such as backups. However, if backups fail, I may need to be alerted. Actually, I'm sure I need an alert, but it's a question of whether I need to know now, at 2am, or get an alert the next morning at 9am. Often I may choose to respond differently to the QA server than I do for the production Sales instance. One might get immediate attention 24x7 while the other is a best available effort, and certainly isn't likely to get a response on Saturday night.

While SQL Server becomes better at adapting to changing conditions, there are definitely times when a human must get involved and decide how to solve an issue. That's the reason that many of us are employed by others. We manage tasks and make decisions that machines can't do for us. However, our attention and time is limited. Despite what some managers think, there are only so many hours in the day and week, and we need to make decisions about which items to focus on and handle. Perhaps even more important, unnecessary distractions can weaken our focus and cause us to make mistakes that we wouldn't ordinarily make.

As we manage more systems, many of which are important to our employers, a good system administrator will tune monitoring systems and ensure that they aren't receiving or responding to unnecessary alerts. They work to minimize the interruptions and distractions from lower priority items. Maybe most importantly for long term job health, they ensure that systems don't cause interruptions during their personal time, especially vacations. Good administrators put another human in the loop when they need a break.

Of course, we also do ensure that low priority systems receive some attention. We can't ignore that low disk space warning on the development instance forever.

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 ( 4.9MB) 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 Source Control

How to track every change to your SQL Server database

See who’s changing your database, alongside affected objects, date, time, and reason for the change with SQL Source Control. Get a full change history in your source control system. Learn more

Redgate Hub

Watch SQL in the City Streamed 2017

The livestream recording for Redgate's December 2017 virtual event is now available. Technical sessions went into the latest Microsoft SQL Server releases, and covered topical issues such as DevOps, data compliance, protection & privacy. Watch the recording

Featured Contents

 

Azure DWH part 25: Auditing and threat detection

Daniel Calbimonte from SQLServerCentral.com

In this new article, we will show how to audit the Data Warehouse Activities. More »


 

Network Issue or THREADPOOL waits?

Additional Articles from Brent Ozar Unlimited Blog

Tara Kizer talks identifying THREADPOOL waits and what you can do about them. More »


 

The 2018 State of Database DevOps report

In this year's survey, over 700 IT professionals across a range of sectors, in organizations of every size around the globe were asked about their plans to adopt DevOps, how they thought the database fitted into the picture, and what they thought the biggest challenges were. More »


 

From the SQLServerCentral Blogs - SQL in the City is coming Feb 28

Steve Jones from SQLServerCentral Blogs

The next edition of the SQL in the City broadcast is coming Feb 28, and I’m planning travel now to... More »


 

From the SQLServerCentral Blogs - Power BI Custom Visuals Class (Module 87 – Funnel with Source MAQ Software)

Devin Knight from SQLServerCentral Blogs

In this module you will learn how to use the Funnel with Source Custom Visual by MAQ Software. The Funnel... More »

Question of the Day

Today's Question (by Steve Jones):

I am writing a PoSh function that will check for various database parameters, including the recovery model. I decide to include a parameter that will filter based on recovery model. However, I want to be sure that the user can't enter an invalid model as a typo. How should I specify the parameter, $recoverymodel in the function header?

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: PowerShell.

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

ADVERTISEMENT

Pro Power BI Desktop

This book shows how to deliver eye-catching Business Intelligence with Microsoft Power BI Desktop. You can now take data from virtually any source and use it to produce stunning dashboards and compelling reports that will seize your audience’s attention. Slice and dice the data with remarkable ease then add metrics and KPIs to project the insights that create your competitive advantage.

Yesterday's Question of the Day

Yesterday's Question (by Evgeny Garaev):

Which data type should be used to store a JSON data in a SQL Server 2016 database?

Answer: NVARCHAR(MAX)

Explanation:

There is no particular data type for JSON in SQL Server 2016. You can use any text field but the universal one is NVARCHAR(MAX).

Ref: https://docs.microsoft.com/en-us/sql/relational-databases/json/json-data-sql-server


» 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 - Administration

How to rollback Dacpac applied - Hi, How to rollback Dacpack applied in a database. SQL Server version used is 16. Regards Binu


SQL Server 2017 : SQL Server 2017 - Development

IMPORT INTO EXCEL 2016 - Hi Guys, i have just been upgraded to excel 2016.  I trying to import data from SQL server into excel...


SQL Server 2016 : SQL Server 2016 - Administration

how to find if xp_cmdshell is being used or not - I am trying to figure out if we can find out if xp_cmdshell is used on a particular SQL instance...

Migrated DB to 2016, having ODBC Access problem - Thanks in advance for any clues on this problem. I'm migrating several SQL Server databases from SQL2005 to SQL2016. One...

A little problem with the Agent - In a Instance the value for user_options 

SQL Server logon audit - Hello everyone, We're looking to setup monitoring for all the logins that log on to a SQL server instance. The information...


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

how to get all values from one table repeated to each group on a column in another table - Updated Query tables: I have a table called DisplayFields and another one called tax. Displayfields table has all unique rows...

Importing Multiple Excel Files using TSQL - Hi Folks, So, here is my goal this time:  To import multiple Excel files into a database using TSQL.  Whether it...

Help me in update - complex - hi All,    Hope all are fine create table #sample(id varchar(100), version_no int, set_type varchar(100), set_no int ,XML_NAME varchar(100)) insert into...

OR in JOIN criteria - Apologies if this has been asked before, searching for it yields too many results. I've been eliminating NOT EXISTS in some...


SQL Server 2014 : Administration - SQL Server 2014

Specified file is not a SQL Server backup file - I have two servers that the XP_delete_file command recognizes the sql backups created in SSMS as invalid backups.  The files...

how to catch previous error message - I have a small problem. I like to catch a detailed Error Message. If a command raise more then one...

Page Life Expectancy plummets daily - Whilst monitoring various counters on our production instance of SQL Server 2014 (Web Edition), we have noticed that the Page...

AlwaysOn Availability Groups Failover - uncommitted transactions - My understanding is that when performing a manual or automatic failover of an availability group in synchronous mode. Any uncommitted...


SQL Server 2014 : Development - SQL Server 2014

The conversion of the varchar value overflowed an int column - the below script is return this error : The conversion of the varchar value '4103049600' overflowed an int column declare @jsondate varchar(40)...

If an INSERT fails, does the sql that follows still run? (is my code unreachable?) - We have a stored procedure as below, which inserts a record, then checks @@ROWCOUNT to see if it was successful...


SQL Server 2008 : SQL Server Newbies

INSERT running slow in SQL 2016 - Good Morning Experts, We had a database on SQL Server 2012. INSERTS were running fine. We migrated this database to 2016...


Programming : Powershell

email with attachment powershell - This code runs successfully but does not send an email.Any help is appreciated. Add-PSSnapin Microsoft.Exchange.Management.Powershell.Admin -erroraction silentlyContinue function sendmail_withAttachment { Param ( # $smtpServer...


Data Warehousing : Integration Services

Script Tasks and input and output variables - is there any way in a script task to find out the actual variable names that were specified as readonly...

SSIS Script task disappearing code - We have an SSIS 2016 package developed in VS 2017, that includes a C# script task. Occasionally for no apparent...

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