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

Expensive CPUs

There have been a lot of features added to the SQL Server platform over the years. Several of these features let us perform functions that are beyond what a database has traditionally been designed to handle. SQL Server has had the ability to send emailsexecute Python/R/etc. code, and in SQL Server 2025, we can call REST endpoints.

Quite a few of these features (arguably) are more application-oriented than database-oriented. There's nothing inherently wrong with having a server perform some of these functions, and there have been some very creative implementations using these features. I recently ran into one of these examples from Amy Abel, where she shows how to use the new REST endpoint feature to call an AI LLM to generate and send emails from your database server. That's creative, and it's reminiscent of the numerous examples from various experts over the years who demonstrate how these features can be used to accomplish a task.

However, these are examples. They work amazingly well with one user running a limited workload. This reminds me of many of the examples I've seen using the AI vector enhancement in SQL Server 2025 to create embeddings from string data using an LLM. That is interesting, but most of the examples show a trigger being used to update the encodings. Imagine users updating data and those triggers firing. Imagine a real workload and how often your users might update string data you want to use in an AI application, especially a RAG application. Think about how complex or long-running triggers in your applications now that can overload your system.

CPUs in database servers are expensive. The hardware isn't more expensive, but the software is pricey. Standard Edition is limited to 24 or 32 cores (depending on version), and while Enterprise isn't limited to any number of cores, the cost of each core is $$$$. Is it worth having those $$$$ cores sending emails or calling external services? Or would you be better offloading those calls to another server, like an app server, where the cost of the core is the hardware and a little .NET code running separately?

Many of us already struggle with the database server as a bottleneck for our application and workload. Scaling up our database systems is expensive and cumbersome. We struggle to get approval for larger VMs, and if we scale up in the cloud, it gets very expensive very fast. I'm not surprised that database vendors are happy to add these features as it increases the licensing cost for applications using them.

I know the majority of the cost of building applications is labor and software developers' time. However, that's changing with LLMs that can produce code cheaply. I keep seeing that the cost of writing code is approaching zero.

That's not going to be true if you use LLMs trained on the example code that increases your database licensing cost. Then the cost might be higher than you expect.

Steve Jones - SSC Editor

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

 
 Featured Contents
Technical Article

Level 28: DAX Text Functions: The DAX Extract & Modify Functions: LEFT(), RIGHT(), MID(), REPLACE(), SUBSTITUTE()

Bill Pearson from SQLServerCentral

Business Intelligence Architect, Data Analyst, CPA, and author Bill Pearson introduces a subseries surrounding the DAX Text Functions, including LEFT(), RIGHT(), MID(), REPLACE(), and SUBSTITUTE() and breaks out the operational groups of functions involved. Next, he introduces the “Extract and Modify” group of text functions as the focus of this Level. Finally, he identifies and examines each functional member of the “Extract and Modify

External Article

Common SQL Server Problems: Invalid Length

Additional Articles from SimpleTalk

This is another part in my series designed to offer guidance around common issues in SQL Server. Today, let’s talk about the all-too-common error: invalid length.

Blog Post

From the SQL Server Central Blogs - Using AI for Git Hooks

Steve Jones - SSC Editor from The Voice of the DBA

Recently I had someone internally ask about whether SQL Source Control supports Git Hooks. Since it was after UK work hours, I decided to run a quick test. One...

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):

 

Creating JSON I

On SQL Server 2025, what happens when I run this code:
SELECT JSON_OBJECTAGG( 'City':'Denver')
GO

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)

The Decoded Value

In SQL Server 2025, what is returned from this code:

DECLARE @message VARCHAR(50) = 'Hello SQL Server 2025!';
DECLARE @encoded VARCHAR(MAX);

SET @encoded = BASE64_ENCODE(CAST(@message AS VARBINARY(1000)));
SELECT BASE64_DECODE(@encoded) 

Answer: A binary string

Explanation: The output of BASE64_DECODE() is a binary string. Ref: BASE64_DECODE() - https://learn.microsoft.com/en-us/sql/t-sql/functions/base64-decode-transact-sql

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.


Integration Services
SSIS 2019 or 2022 - Microsoft Connector for Oracle - Hello all, I am having one heck of a time installing Microsoft Connector for Oracle on a VS2019 instance with Integration Services 3.15 and also on VS2022 with integration services installed. For the life of me, I cannot get the Oracle connection manager to show up when I right click on the connection managers and […]
Create txt file in SSIS without NON UTF-8 characters - Hello SSC Community, I am running into and issue with SSIS creating a text file from a SQL query. Apparently, there is a known issue that SSIS cannot produce a text file without NON UTF-8 characters without some kind of workaround. I am using VS 2026, and the issue still remains in the latest version.  […]
Create txt file in SSIS without NON UTF-8 characters - Hello SSC Community, I am running into and issue with SSIS creating a text file from a SQL query. Apparently, there is a known issue that SSIS cannot produce a text file without NON UTF-8 characters without some kind of workaround. I am using VS 2026, and the issue still remains in the latest version.  […]
Create txt file in SSIS without NON UTF-8 characters - Hello SSC Community, I am running into and issue with SSIS creating a text file from a SQL query. Apparently, there is a known issue that SSIS cannot produce a text file without NON UTF-8 characters without some kind of workaround. I am using VS 2026, and the issue still remains in the latest version.  […]
Editorials
25 Years of SQL Server Central - Comments posted to this topic are about the item 25 Years of SQL Server Central
You Have Homework - Comments posted to this topic are about the item You Have Homework
There Are a Lot of Databases - Comments posted to this topic are about the item There Are a Lot of Databases
Article Discussions by Author
The Decoded Value - Comments posted to this topic are about the item The Decoded Value
Deploying SQL Server Developer Edition in Kubernetes: A Cost-Effective Alternative to RDS - Comments posted to this topic are about the item Deploying SQL Server Developer Edition in Kubernetes: A Cost-Effective Alternative to RDS
Automating Database Cleanup for PostgreSQL Using Python - Comments posted to this topic are about the item Automating Database Cleanup for PostgreSQL Using Python
The Query Optimizer and Page Density - Comments posted to this topic are about the item The Query Optimizer and Page Density
Adding and Dropping Columns II - Comments posted to this topic are about the item Adding and Dropping Columns II
Leveraging DuckDB for OLAP Workloads: The Fabric Modern Data Platform - Comments posted to this topic are about the item Leveraging DuckDB for OLAP Workloads: The Fabric Modern Data Platform
SQL Server 2022 - Development
bringing a .bak across the wire without rdp'ing or mapping into the sql server - hi,  a peer of mine would like to be self sufficient in bringing small .bak's over to her local without rdp'ing to the sql server or mapping a drive to that server or asking our dba for help. I dont even think she would mind if sql sent the .bak straight across the wire to […]
Create filegroups in partition - I have a table with partition on create_timestamp field. Though we're storing all data in one file group, the boundary values are defined for each quarter. I would like to add few filegroups for the next quarters: 2025-04-01, 2025-07-01 and 2025-10-01 I attached file for the partition, filegroup and rows info. With huge number of […]
 

 

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

 

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