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

 Daily Coping Tip

Think of 3 things you are grateful for and write them down

I also have a thread at SQLServerCentral dealing with coping mechanisms and resources. Feel free to participate.

For many of you out there working in a new way, I'm including a thought of the day on how to cope in this challenging time from The Action for Happiness Coping Calendar. My items will be on my blog, feel free to share yours.

What's a Normal SQL Server?

Many of us have worked in environments that have a number of SQL Server instances. Different versions, editions, and mostly different hardware profiles. We deal with different applications and software that places different demands and requirements on our database systems. Some of us are even dealing with multiple datastores, trying to integrate SQL Server with Oracle, PostgreSQL, Elasticsearch, Redis and more.

Keeping an inventory of instances and patches can be a challenge. I hadn't thought this was a big problem, but I've been surprised how many people like the Estate Management Versions page in SQL Monitor. This gets a lot of use, as people work to keep track of their systems. With that in mind, I wonder how many people have to support the "average" SQL Server that Brent Ozar supports. He runs the SQL ConstantCare® service for his customers, and regularly reports on average data every quarter.

In his latest report, which contains data from over 3000 servers, we get a picture of what various organizations run for their instances. The version breakdown is what I expect, and I'm not surprised that 2016 is the most popular. This was a major release, with lots of changes. I think 2008 R2, 2014, 2017 were relatively minor releases. Few changes, and not good timing relative to other releases.

Most people have supported versions, and I think some of the licensing rules and breaks to lead many people to think about getting Software Assurance to upgrade once in awhile. I also think it makes sense that many people manage relatively small databases, well under 125GB. If you do the math, 47% of these instances are these relatively small sizes. However, it is interesting to see nearly 15% of his clients are > 1TB. That's quite a spread.

With data sizes like this, you see lots of smaller hardware sizes. I don't know how this might compare with your organization, but it's interesting to think about how you might fit into these averages. Is your organization doing a better or worse job of giving you resources for your data size? Keep in mind, there isn't correlation here, so you don't know if the 30GB database has 4 cores or 24 cores.

I think having data like this is interesting. I do wish Microsoft would release more specific stats, like the version counts and database sizes, with hardware averages for those data sizes. I know why this doesn't make sense for them to release the data, but I still wish they would let us know more. As Brent says, they tend to present on really recent technology, which many of us might not use. I'm sure many of you have a variety of instances, but you'll easily be able to see if your spread of instances looks like Brent's client base.

Steve Jones - SSC Editor
#BlackLivesMatter

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

 
 Featured Contents

Basic Git for DBAs: Sharing Files Through GitHub

Steve Jones - SSC Editor from SQLServerCentral

This is the second article in a series on the basics of using Git. The other articles in the series are: Basic Git for DBAs: Getting Started with Git In the first article, we covered the basics. In this one, we will look at how to share our files with others. We will learn how […]

Working with SQL Cursors

Additional Articles from Database Journal

n SQL cursors serve as a pointer that enables application programming language to deal with query results one row at a time. Read on to explores the concept behind and learn how to declare cursors, open, retrieve data from them, and then close them.

Challenges and trends for Database Monitoring in 2020

Additional Articles from Redgate

Nearly 1000 database professionals took part in this year's State of Database Monitoring survey. Providing insights into how they monitor their estates, the technologies they work with, what their biggest challenges are, and emerging trends for 2020. For the detailed analysis of the responses, download your free copy of the report.

From the SQL Server Central Blogs - Export Deadlocks to file from system_health Extended Event using PowerShell

Cláudio Silva from Cláudio Silva

Just a quick post as may help any of you searching for this. Scenario Client wants to analyze most recent deadlocks that happened on a specific instance. They asked...

From the SQL Server Central Blogs - Transforming JSON data with the help of Azure Data Factory - Part 4 - Passing Arrays around

Rayis Imayev from Data Adventures

(2020-May-24) It has never been my plan to write a series of articles about how I can work with JSON files in Azure Data Factory (ADF). While working with one...

 

 Question of the Day

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

 

The Order of Operations

What is the result from this code?
SELECT -100.0/-100.0*10.0

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)

Mail in Azure SQL Database

Where can I use Database Mail in Azure SQL Database?

Answer: Only in Managed Instances and Instance Pools

Explanation: Database Mail is available only in Managed Instance and instant pools. Ref: Azure SQL Database Features - https://docs.microsoft.com/en-us/azure/sql-database/sql-database-features

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 - Administration
2017 group permissions - I am having weird issue with permissions. I granted a group read write execute to database but the user is still not able to connect to database with the following error "Ther Server principal "User" is not able to access database "Userdatabase"under the current security context. But when I add the user individually the user […]
Worker Threads Per Session - Morning All, Is it possible to determine how many threads are spawned by a spid in SQL Server 2017. We are running out of threads (every now and then) during load times through the night. I am trying to track down and subsquently prove which particular query is the worst offender? Cheers Alex
SQL Server 2017 - Development
XML node queries - All, I'm trying to import XML using t-sql for the first time. I've created the following example to base my questions on: declare @xml xml select @xml=' Person1 Address1 Person2 Addressline1 ' SELECT T.c.value ('id[0]','varchar(255)') AS id, T.c.value ('name[1]','varchar(255)') AS name, T.c.value ('address1[1]','varchar(255)') AS address1 FROM @xml.nodes('/people/person') […]
How to compare 2 databases to find what objects are out of sync? - Last night, my company tried deploying a large update to almost all tables & sp's to our production database (basically just adding a new field to each table & sp, but the qty of objects updated was pretty massive) but ran into problems because the script we tried to deploy to run all of these […]
SQL Server 2016 - Administration
estimated execution plan -   I have an SP which is truncating a table and then insert into and selecting again.  Now, I am planning to tune this SP. if I decide to view the estimated execution plan then is it a safe action or will it change any data, I know actual execution plan will change. Please let […]
startup sql in -m error - Wanted to try to startup sql server with a parameter to limit what can connect.  Got this from Microsoft site but it says invalid parameter. -m"Microsoft SQL Server Management Studio - Query"
Administration - SQL Server 2014
SSMS Copy Database utiliy - how solid is it & can you rely on it? - Hi   If I want to make a 100% accurate copy of a database with nothing missed, triggers, sprocs, indexes, data  etc etc copied will SSMS Copy Database do this reliably? i.e. Right click on DB, Tasks, Copy Database.... There are reasons we cant use back up & restore.
SQL Server 2019 - Development
Data moth wise - Hi All, I just trying to get data month wise, following is just sample table. I would like to get a result like, only average of one entry month wise, for an year it should be 12 rows. The problem is the table is loading from other sources, it has lot of duplicates and per […]
Is it acceptable to use the presence of a value in a NULLable column as a flag? - I have a stored procedure that processes rows in a table. The stored procedure is called by an external process (Jitterbit, though I don't believe that is relevant). Occasionally the stored procedure throws an exception which is caught in a TRY CATCH block. My client wants this to work slightly differently; they want the error […]
Invalid object name OPENJSON - I have an Express edition of SQL 2019 Microsoft SQL Server 2019 (RTM-GDR) (KB4517790) - 15.0.2070.41 (X64) Oct 28 2019 19:56:59 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows 10 Enterprise 10.0 (Build 16299: ) and I have a new DB with compatibility level set to 150. I use SSMS version 18.5 […]
SQL Server Newbies
MSSQLSERVER service will not start - Good Morning - I have a SQL Server 2014 that I inherited that I use as backup server.  I would like to use it but MSSQLSERVER service will not start.  It worked several months ago but it really just sits, neglected, until someone needs it.  I cannot log into SSMS to use any of the […]
Reporting Services
SSRS report doesn't show some of the non-null data for some reason... - Okay folks... riddle me this one:   Why does SSRS not display the non null data that I've chosen to occupy the 2nd column in my tablix, at the 3rd group level, when the field in question is 1) not null, and 2) appears just fine in the detail row ??? I've got the following design: […]
Integration Services
optimizing SSIS package -   I am trying to optimize an SSIS package which has multiple streams..so step is loading some data ( using sp) and other streams are calculating ( using different sp). Now for loading using the below code DECLARE @yesterday DATE SET @yesterday =DBO.FNGETDATEONLY(GETDATE()) SET @yesterday =DATEADD(DAY, -1, @YESTERDAY) EXEC SPNAMETEST @DATETOBEPROCESSED=@yesterday calculating steams uses below […]
Stored Procedure as Destination. OLEDB vs ADO.NET - I know I can do this using an OLE DB Command, but I was wondering if its possible to configure an ADO.NET connection and component as a destination? EXEC dbo.WeatherForecastUpsert ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? If it isnt, no worries. I just cant seem to find a way to do it.
COVID-19 Pandemic
Daily Coping 4 Jun 2020 - Today’s tip is to look up at the sky. Remember we are all part of something bigger. http://voiceofthedba.com/2020/06/04/daily-coping-4-jun-2020/
 

 

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

 

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