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

Your Favorite Improvement

SQL Server 2025 is out in preview form. CTP 2.0 is available for you to test, and there are quite a few changes that have been added to the platform. Some of these are already in the cloud, but this is your chance to test them in your environment.

This is version 17.x, though I don't know we've really had 17 versions to work with. In any case, there have been a lot of versions in my career. I've connected to and worked on all of these: 4.2, 6.0, 6.5, 7.0, 2000, 2005, 2008, 2008R2, 2012, 2014, 2016, 2017, 2019, 2022. No 2025 yet (other than install and a few basic queries), but that's coming.

In that time, I've seen this platform evolve significantly, incorporating new features, capabilities, language changes, and more. SQL Server has been a very capable database platform for millions of users around the world. Many of you reading this have probably based a good portion of your career, if not all of it, on Microsoft SQL Server. I know I have, and it's been a good career.

With that in mind, and trying to be positive, what is your favorite feature/improvement/change in SQL Server over the years? What has made a big difference in your career or job? Maybe this made your customers happy, maybe something made your job easier, or maybe there's a change that just reduced your stress.

If you're looking for a list of changes, there are some at Wikipedia, though this isn't an exhaustive list. Brent wrote about his top 6 things, all of which are good changes. I certainly think that the DMVs are amazing when I look at other platforms and the lack of information they surface.

If I think about the things that have made a huge difference for my positions, I'd say that 2005 with CTEs and DMVs were huge. However, for me, the addition of the OVER() clause and Window functions are incredible. That is one of the language changes I have used a lot over the years to simplify aggregate queries that were much harder with GROUP BY structures.

The other feature that I think is amazing is the automatic seeding in Availability Groups. That alone makes it easy to add nodes, consider upgrades, and more without requiring long, slow backup copies. While I've rarely used it, I can think of many times in the past when it would have made my life much easier.

What is your favorite improvement to the platform over the years? Let me know which thing has made your job much easier, more efficient, or maybe more enjoyable.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

From Rows to Pages: The Hidden Chaos Behind SQL Server’s Sampling Methods

Chandan Shukla from SQLServerCentral

Learn about the TABLESAMPLE option in T-SQL and uncover some of the pitfalls of assuming this works as you think it does.

External Article

Long Short-Term Memory Network for Machine Learning

Additional Articles from MSSQLTips.com

While Recurrent Neural Networks (RNN) are powerful, they often struggle with long-term dependencies due to the vanishing gradient problem. Long Short-Term Memory Networks (LSTMs) address this issue by introducing memory cells and gates. For beginners, understanding LSTM components, such as the input, output, and forget gates, can be challenging. This tip breaks down LSTMs in an intuitive way, highlighting their importance and practical applications.

Blog Post

From the SQL Server Central Blogs - 70 Years of Artificial Intelligence History in 15 Minutes

K. Brian Kelley from Databases – Infrastructure – Security

How long has AI been around in different domains? What was it called before we starting using the phrase, "Artificial Intelligence?" Is Clippy included in said history? Here is...

Blog Post

From the SQL Server Central Blogs - From Zero to Dashboard: A SQL Project for Total Beginners

Tracy McKibben from RealSQLGuy - Helping You To Become A SQL Hero

Let's build a real data dashboard. This guide will walk you through the entire process using free tools like BigQuery and Looker Studio, even if you’re just getting your...

The Definitive Guide to Azure Data Engineering: Modern ELT, DevOps, and Analytics on the Azure Cloud Platform

The Definitive Guide to Azure Data Engineering: Modern ELT, DevOps, and Analytics on the Azure Cloud Platform

Site Owners from SQLServerCentral

Build efficient and scalable batch and real-time data ingestion pipelines, DevOps continuous integration and deployment pipelines, and advanced analytics solutions on the Azure Data Platform. This book teaches you to design and implement robust data engineering solutions using Data Factory, Databricks, Synapse Analytics, Snowflake, Azure SQL database, Stream Analytics, Cosmos database, and Data Lake Storage Gen2.

 

 Question of the Day

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

 

New Backup Compression

What is the new software backup compression algorithm 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)

A Big Updated Columns List

I have this table in SQL Server 2022:

CREATE TABLE CustomerLarge
  (CustomerID               INT NOT NULL IDENTITY(1, 1) CONSTRAINT CustomerLargePK PRIMARY KEY CLUSTERED
 , CustomerName             VARCHAR(20)
 , CustomerContactFirstName VARCHAR(40)
 , CustomerContactLastName  VARCHAR(40)
 , Address                  VARCHAR(20)
 , Address2                 VARCHAR(20)
 , City                     VARCHAR(20)
 , CountryCode              CHAR(3)
 , Postal                   VARCHAR(20)
 , creditlimit              INT
 , discount                 NUMERIC(4, 2)
 , lastorderdate            DATETIME
 , lastorderamount          NUMERIC(10, 2)
 , lastordercontact         VARCHAR(20)
 , created                  DATETIME
 , modified                 DATETIME
 , modifiedby               VARCHAR(20)
 , statusid                 INT
 , active                   BIT
 , customersize             INT
 , primarysalesid           INT);
GO

If I check the columns_updated() function return in a trigger, what is the data returned?

Answer: A three byte varbinary value

Explanation: In this case, there are 21 fields, which fit into 3 bytes. 24 fields are possible in three bytes, which is what is returned. Ref: COLUMNS_UPDATED() - https://learn.microsoft.com/en-us/sql/t-sql/functions/columns-updated-transact-sql?view=sql-server-ver16

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 2019 - Development
Replace with like join - I am trying to create and Update query based on a like join.  Is that possible?  This is what I have: UPDATE claim SET incident_desc = CASE WHEN incident_desc like '%' + NAC.Glyph + '%' THEN REPLACE(claim.incident_desc, NAC.Glyph, NAC.Replacement) ELSE incident_desc END FROM claim INNER JOIN NonASCIICharacters  NAC ON claim.incident_desc LIKE '%' + NAC.Glyph + […]
built in deadlock information capture - Hi, i cannot recall the object or even if it comes off the shelf but i once saw a tool in sql server where the competing tables etc involved in a deadlock are recorded.   I think you had to know a bit about the complicated looking test it provided but it was sweet.   my recollection […]
why do my advanced i/o column lengths on city keep changing - hi , every time i go back to an ssis pkg that is under construction, at least one column in a tsv needs to be reset in the advanced properties of the oledb source from 50 bytes to 256.  Even though last time i edited it,  i saved the pkg. why is that happening?   Today […]
Anything that is NOT about SQL!
NKTg Law on Varying Inertia – A Different Way to Think About Motion - Hi everyone, I’d like to share something from the science side of life rather than the SQL side. It’s called the NKTg Law on Varying Inertia. In classical mechanics, Newton’s laws describe how objects move under the influence of forces. But the NKTg Law takes a different angle: instead of focusing only on forces, it […]
Editorials
Carrots and Sticks - Comments posted to this topic are about the item Carrots and Sticks
Storage Enhancements - Comments posted to this topic are about the item Storage Enhancements
Everyone Wants a Piece of the AI Pie - Comments posted to this topic are about the item Everyone Wants a Piece of the AI Pie
Article Discussions by Author
How to create your custom GPT SQL Expert - Comments posted to this topic are about the item How to create your custom GPT SQL Expert
MongoDB and NodeJS in action - Comments posted to this topic are about the item MongoDB and NodeJS in action
SQL Server 2022 - Administration
Index Consolidation - I am trying consolidate indexes in the production environment and whilst I have a good idea of what or how to about the actual index consolidation, my challenge is how to test this process to ensure that stored procedures or processes calling on tables are using the indexes they would normally have used so for […]
CDC job running for 17 days? - Good morning, I've noticed my CDC job running for 17 days.  I've noticed it before, but wasn't sure it was an issue.  I've checked sys.databases to check the log_reuse_wait_desc to see if it said "replication". It says nothing. The Database is 8 TB and the log file is 23 GB. I queried :  SELECT job_id, […]
Database growth events for unidentified databases - We have recently upgraded from SQL Server 2016 to 2022 Standard Edition. Our nightly reports have started showing regular growth events for the following database files (see attached). model_replicatedmaster (both the replicatedmaster and replicatedmasterlog files) model_msdb (both the MSDBData and MSDBLog files) Firstly, what databases are these? I'm familiar with model, master, msdb and tempdb […]
distributed availability group query - Not sure if this is my misunderstanding or an error in my process: Create AG1 on server 1 & 2.  (2019).  Add DB1.  Replica are joined, DB1 is synchronised. Create AG2 on server 3 & 4.  (2022). Add DB2.  Replica are joined, DB2 is synchronised. Remove DB2 from AG & drop on both. Create DAG […]
SQL Server 2022 - Development
ODCB error from Linux client - Hi Folks, When connecting to one of SQL Server 2022 servers , from a linux machine, there is this ODBC error . Strangely the same isql test is successful when I test against another SQL server 2022 server on a different server and also in the same VLAN. I can connect to both these servers […]
azure vm has to be rebooted more often than we'd like - Hi we're noticing this 2022 server gets into a funk now and then.   Specifically, i notice when i script existing tables to the clipboard etc it just hangs with that circle continuing to spin.    i notice that if i reboot, the problem goes away for a while.  does the community have a similar experience?  […]
 

 

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

 

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