SQLServerCentral - www.sqlservercentral.com

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

Featured Contents

The Voice of the DBA

Get Patched If Not Supported

There are plenty of reasons not to upgrade your SQL Servers to a new version. Perhaps you know the system is working and don't want to disrupt activity. Often we don't want to take a chance that some change in functionality causes us issues. In many cases, the new functionality might not be used in your current system, and you don't see the ROI for the cost of upgrades. Costs certainly are a concern as SQL Server has gotten more expensive across time. In all these cases, it makes sense to stay on your current version. Software Assurance might negate the upgrade cost in money, or even give you a reason to upgrade, but it doesn't prevent any of the other time and resource costs.

Patches don't cost money, however, and they are included in your cost. While I am nervous about applying patches right away, I do want to apply them at some point. If for no other reason, I do want to ensure I'm going to get into a position where I have to apply a patch to fix something or get support in an emergency and not have done any testing. I am more nervous now after the recent Windows Fall Update issues, and definitely want to let others test patches for a month or two before I apply them. Thanks to those of you that patch early and report issues.

The exceptions I make here about avoiding patches are for older versions of SQL Server. If I've got systems that are out of mainstream support, I want them patched. At that point, only security patches are coming and if I get those, I need to apply them, which means I need to be sure all other patches are in place.

Apparently many of you think like me, but not enough of you. I ran across a post from Erik Darling looking at a cross section of their customers, who I'd like to think are slightly more on the ball than everyone else, but perhaps not. In any case, lots of SQL Server 2008 and SQL Server 2012 systems haven't been patched, with R2 and 2014 not far behind. While I know some vendors make patching difficult for SQL Server DBAs, we ought to be pressuring them more and more, and even asking our management to do the same.

We ought to be patching systems on a regular basis. That's a part of the software life cycle and until we find ways to write bulletproof software, we're going to be patching. Microsoft is in the same situation as most of us, which is why they deliver patches regularly for SQL Server. They need to patch their Azure databases and ensure they are prepared for security issues.

Make a plan to test these patches on your systems and start implementing it. None of us wants to be caught in a situation where we have to apply a security patch to an older server next week and we have no plan for how to test the application. Perhaps even worse, none of us wants to have a data breach because we were afraid to apply a security patch *because* we didn't have a test plan.

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.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 Monitor

The 4 pillars of SQL Server Monitoring

5 SQL Server experts; Grant Fritchey, Rodney Landrum, Kathi Kellenberger, Phil Factor and Tony Davis, use their many years of experience working and maintaining data systems to explain the 4 key strategies required for a successful, estate-wide monitoring solution.  Download your free copy now

SQL Prompt

Become a more efficient SQL developer with SQL Prompt

Learn how to write SQL faster and more efficiently with these exclusive short videos from Data Platform MVPs and SQL Server experts. With SQL Prompt you can strip out the repetition of coding and write SQL 50% faster. Check out the tips

Featured Contents

 

Stairway to Columnstore Indexes Level 5: Adding New Data To Columnstore Indexes

Hugo Kornelis from SQLServerCentral.com

Earlier levels have shown how Columnstore Indexes work effectively with static data. In most tables however, data is hardly ever static. We are constantly inserting new rows, and updating or deleting existing rows. If you think about what this means for a columnstore index, you will realize that this comes with some unique challenges. More »


 

Free eBook: Performance Tuning with SQL Server Dynamic Management Views

Additional Articles from Redgate

Dynamic Management Views (DMVs) are a significant and valuable addition to the DBA's troubleshooting armory, laying bare previously unavailable information regarding the under-the-covers activity of your database sessions and transactions. More »


 

Getting Sneaky With Forced Parameterization

Additional Articles from Brent Ozar Unlimited Blog

In which Erik works around the documented limitations with CROSS APPLY. More »


 

From the SQLServerCentral Blogs - SQL Server Availability Group FailoverDetection Utility PowerShell Function Improvements – Named Instances, Archiving Data, Speed

Rob Sewell from SQLServerCentral Blogs

In my last post I wrote about a new function for gathering the data and running the FailoverDetection utility by... More »


 

From the SQLServerCentral Blogs - Turbo Charged Staging\Caching Tables With In Memory OLTP

Gavin Draper from SQLServerCentral Blogs

Since SQL 2012 some really awesome new technologies have been introduced into the engine that are massively underused. Everyone is... More »

Question of the Day

Today's Question (by Steve Jones):

I have a data frame of the all time home run hitting leaders in baseball. I want to get some quick statistical looks at the data frame (HR.hitters). What function lets me quickly get an idea of the min, max, mean, and median?

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: R Language.

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

Exam Ref 70-765 Provisioning SQL Databases

Prepare for Microsoft Exam 70-765–and help demonstrate your real-world mastery of provisioning SQL Server databases both on premise and in SQL Azure. Designed for experienced IT professionals ready to advance their status, Exam Ref focuses on the critical thinking and decision-making acumen needed for success at the MCSA level. Get your copy from Amazon today.

Yesterday's Question of the Day

Yesterday's Question (by Kendra.Little):

Which of the following does the SQLServer: Databases\ Transactions/sec performance counter NOT count?

Answer: SELECT statements run in autocommit mode

Explanation:

The transactions/sec counter does NOT count SELECT statements run in autocommit mode: that is, statements that do not have an explicit transaction wrapped around them (BEGIN TRAN .... COMMIT, etc.)

Oddly enough, this isn't true for modifications. If you run an update statement in autocommit mode, for example, it will be reflected in the counter.


» 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

Using SSMS to connect to 2008 - I am using newest version of SSMS I can connect to a 2008 server but I am unable to connect...


SQL Server 2017 : SQL Server 2017 - Development

Powershell Script in SSIS not downloading the file when run from SQL Server Agent - /* Hi, I have an SSIS Package which uses the Execute Process task to run a PowerShellScript. The PowerShell Script just downloads...

Merge Tables with SQL Query Request - Hello Community, Can someone please take a look at the following tables and let me know how to compile a sql...

Issue with midnight in stored procedure - I have a very straight forward check in a stored procedure that makes sure an EndTime was entered from an...

Entity-Attribute-Value is evil ? how to avoid... - Hi all consider the following scenario:I have a FILE table with known attributes (size, creation date, ...)The user needs to add...


SQL Server 2016 : SQL Server 2016 - Administration

AG Failover alert - I have created an alert using the script below to see if I get an email if there is a...

Decode waits on Object resource - Hello everyone,  One of our servers is experiencing locks on particular objects of a production database, like for an example OBJECT: 7:480772820:27....

Looking to downgrade our SQL Server editions from Enterprise to Standard Edition - We're looking to downgrade our SQL Server editions from Enterprise to Standard. Contacted our vendors, they all signed off they...

Distributed Replay - ive got a trace of some end of month activity (that is time sensitive and i cant just recapture) that...


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

Looping Through Data - Hello, I'm new to SQL. This is what I'm trying to do.  If Caller and Call Type is same within the table...

Set @rptStartDate = CASE WHEN 'TransactionCount' = 2 Then '11/1/2018' - 30 days Else '11/1/2018' End - Hello again! The issue I am having today is dealing with a date change when certain conditions are met. As...

Error: Cannot insert duplicate key row in... a non-unique index?! - Cannot insert duplicate key row in object 'Payment' with unique index 'IX_Payment_PurchaseId'. The duplicate key value is (2999, C1234, 2018-12-13,...

Text data type - Is it still supported by SS 2016? Thanks


SQL Server 2008 : SQL Server 2008 - General

How Check string of Boolean expression is return true or false - Hi Guys, I have a requirement in my project is how to check string of boolean expression is true or...


SQL Server 2008 : T-SQL (SS2K8)

PERCENTILE_DISC for median calculation - Question: is PERCENTILE_DISC for median calculation works for both odd and even number of records? In SQL Server 2008 to calculate...

Run procedure without cursor or loop - Stored procedure sp_calc_MedRec calculates monthly counts for different measures. The code below shows just one measure, calculations and insert into Create

Calculate time difference between two related visitors without using cursor - I have a table (see attached) listing visitors IDs, listed more than once, and Arrival DateTime. I need to find...

WHERE 1 = 1 - I am afraid I am really going to show my newbie-ness with this question … I see lots of stored procedures...


Data Warehousing : Integration Services

Passing Datbase name as a parameter - Hello, I created a package which extracts data form one table and loads into another. For source I'm using SQL Command Select col1,...


SQL Server 7,2000 : T-SQL

T-SQL code to group data into comma delimited column - hi All, I have a view v_Newsletter with has two columns email and newsletter. There are some emails which has subscribed...

This email has been sent to [email protected]. To be removed from this list, please click here.
If you have any problems leaving the list, please contact the [email protected].
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: [email protected]