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

Admin Rights for Everyone

I was chatting with someone that works at a smaller organization Still a few hundred employees, but the technical teams (dev and ops) were less than 20 in total. They mentioned that everyone had admin rights to the systems as they worked as a team and sometimes developers provided production support.

I haven't encountered that in quite some time. Is it still a thing to give a lot of people administrator writes across many systems? I know for many organizations there is concern about developers being able to change things in production, but if you aren't a public company or a regulated one, then Sarbanes-Oxley, HIPAA, PCI-DSS, or other restrictions don't apply. In those cases, if you have a tight team that functions together, would you be worried about this practice?

My perspective is that I am worried, and I'd still want to restrict production access to a few. I might allow developers to merge code and approve pipelines to run, but I'd want to ensure there are audit trails. Ideally, I'd even restrict DBAs and others from using their credentials and force them to use pipelines, but I know reality. In the moment, during a crisis, they might need access in a quicker way that allows interactive work.

Sometimes production issues are hard to diagnose without being on the actual system.

What I might want to enable instead is a specific account (or a few) for sysadmins that can be used for production access, but with an extended event trace limited to capturing just their actions and all their actions. This wouldn't trigger for most activity, but it would if an admin accessed the system. In my mind, this is less about a worry of malicious activity by an admin and more a way to ensure log all actions so we can troubleshoot mistakes.

I'm sure none of you make mistakes in a crisis, but I do. For my own safety, I'd want a record of my actions.

I might even set a policy of screenshot recording as well. Many of us work in SSMS, and it's easy to forget if we ran a query, or what the results were. SQL History in SQL Prompt saves me often if I forget what query I ran, but it doesn't capture results. If I'm running scripts, whether DDL/DML or clicking in SSMS, I would like a record of what happened. An audit trail we can review.

I do try not to click things in SSMS in production, and instead copy/save the scripts and then run them. It's a better habit, but in a crisis, I know I might forget, as would others, so putting a system in place to capture actions is helpful. Recording your screen is an easy way to do this.

Admin rights widely distributed have been shown to be a bad idea, especially in the era of ransomware, social engineering, etc. However, some entity needs them, so try to ensure you have good governance around actions taken. Just in case someone makes a mistake.

Steve Jones - SSC Editor

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

 
 
 Featured Contents
SQLServerCentral Article

Kerberos Authentication for Aurora PostgreSQL: Mapping AD Groups to Database Roles

Arvind Toorpu from SQLServerCentral

Learn how you can enable map your security roles in Aurora PostgreSQL to AD groups using Kerberos.

Stairway to DAX and Power BI

Stairway to DAX and Power BI Level 19: Dates Functions: STARTOFMONTH(), STARTOFQUARTER(), STARTOFYEAR()

Bill Pearson from SQLServerCentral

Business Intelligence Architect, Analysis Services Maestro, and author Bill Pearson introduces three DAX Time Intelligence functions related to the Start of Periods: STARTOFMONTH(), STARTOFQUARTER(), and STARTOFYEAR(). He discusses the syntax, uses and operation of each, and then provides hands-on exposure to the function in Power BI.

Technical Article

sp_TexasHoldEm: Multi-Player Poker in T-SQL

Additional Articles from SQLServerCentral

Wanna play some Texas Hold ‘Em style poker and make a pile of Query Bucks? Wanna watch other database people playing?

Blog Post

From the SQL Server Central Blogs - Asynchronous Replication of Snapshots from an ActiveCluster Pod to a Third Array

aen from Anthony Nocentino Blog

I’ve been rebuilding my three-site SQL Server demo lab, and I ran into something I’ve wanted for a long time. If you’ve ever designed a SQL Server environment on...

Blog Post

From the SQL Server Central Blogs - SQL Server gMSA: Why So Many DBAs Still Aren't Using It in 2026

SQLPals from Mission: SQL Homeostasis

SQL Server gMSA: Why DBAs Still Aren't Using It in 2026

Group Managed Service Accounts (gMSAs) solve the classic service-account password problem - just look at...

Definitive Guide to DAX cover

The Definitive Guide to DAX: Business Intelligence for Microsoft Power BI, SQL Server Analysis Services, and Excel

Site Owners from SQLServerCentral

Now expanded and updated with modern best practices, this is the most complete guide to Microsoft’s DAX language for business intelligence, data modeling, and analytics. Expert Microsoft BI consultants Marco Russo and Alberto Ferrari help you master everything from table functions through advanced code and model optimization.

 

 Question of the Day

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

 

RegEx Functions I

Which of these RegEx functions need compatibility level 170 in SQL Server 2025?

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)

Transaction Log Truncation

In SQL Server 2025, where can I find information about items that prevent or delay the transaction log truncation?

Answer: In the sys.databases view, there is a column that gives the reason

Explanation: The sys.databases view has a log_reuse_wait column that gives reasons. Ref: Factors that delay log truncation - https://learn.microsoft.com/en-us/sql/relational-databases/logs/the-transaction-log-sql-server?view=sql-server-ver17#factors-that-can-delay-log-truncation

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 2016 - Administration
Two queries work until compared with EXCEPT statement - I've got multiple databases on 2 SQL 2019 CU32 servers , all using the same schema and code base. The only difference in patch levels is Test has the July Security Update and Prod has the March one. There's a Table Valued function that fails on one database only and only on prod. Of the […]
SQL Server 2016 - Development and T-SQL
Execute as failure - Security has long been a problem for me. Every time I think I understand something, along comes another issue to show me that I don't. I want to have an application on start-up query some information from a sort of status table, to see what it is allowed to do. I have a schema called […]
SQL Server 2019 - Administration
In-place OS upgrade or migration to new OS? - Putting this here as we're currently on SQL Server 2019 installed on Windows Server 2019, all hosted as VMs in Azure.  We've recently been handed down a directive to upgrade to Windows Server 2025 by the end of Sept (which, needless to say, is NOT going to happen by that time.) My preference would be […]
Editorials
An Eventual Consistency Scam - Comments posted to this topic are about the item An Eventual Consistency Scam
Never is Not the Policy - Comments posted to this topic are about the item Never is Not the Policy
Learn From History - Comments posted to this topic are about the item Learn From History
Article Discussions by Author
BIT_COUNT() V - Comments posted to this topic are about the item BIT_COUNT() V
How We Reduced SQL Server Infrastructure Costs by 33% on AWS: Lessons From a Database Operations Manager - Comments posted to this topic are about the item How We Reduced SQL Server Infrastructure Costs by 33% on AWS: Lessons From a Database Operations Manager
Automating SSAS Multidimensional Security Audits with PowerShell - Comments posted to this topic are about the item Automating SSAS Multidimensional Security Audits with PowerShell
Rebuilding All Indexes - Comments posted to this topic are about the item Rebuilding All Indexes
Automating OSM Data Refresh in Power BI’s Azure Maps Reference Layer - Comments posted to this topic are about the item Automating OSM Data Refresh in Power BI’s Azure Maps Reference Layer
Database Mail Configuration - Comments posted to this topic are about the item Database Mail Configuration
The SQL Server MCP Server - Comments posted to this topic are about the item The SQL Server MCP Server
SQL Server 2022 - Administration
Fulltext filter daemon host (FDHost) process has stopped abnormally - We have performed a side-by-side upgrade, from SQL Server 2016 to 2022 Developer Edition, for our instance hosting our Azure DevOps catalogs. Having backed up and restored all of our Azure DevOps (formerly TFS) catalogs/databases to the new database server, we have been experiencing the following severity 17 alert several times per day: "The fulltext […]
SQL Server 2022 - Development
STRING_AGG DISTINCT - Has anyone written a wrapper function (or similar) around STRING_AGG() to allow the retrieval of distinct values only? If yes, I'd be interested to see it, thanks.
 

 

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

 

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