SQL Server 2025 API End Points Feature

To check your current SQL Server configuration for the parameter “external rest endpoint enabled”:

select * from sys.configurations where name like’external%’;

To enable it:

sp_configure ‘external rest endpoint enabled’, 1

RECONFIGURE WITH OVERRIDE

select * from sys.configurations where name like’external rest%’;

For the sake of illustration, I can now invoke a dummy api to get data in JSON format:

DECLARE @response NVARCHAR(max)

EXEC Sp_invoke_external_rest_endpoint

  @url = N’https://api.maldatabase.com/download -H “Authorization:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08” –compressed -o feed_file.json’,

  @method = ‘GET’,

  @response = @response output

SELECT @response

SQL Server 2025 TEMPDB Resource Governor (Optimizing TEMPDB Usage)

For the sake of illustration I will set maximum amount of TEMPDB usage is set at 200MB (of course in real world this is NOT a parctical value at all !! I am setting it to quickly reach the maximum configured resource governer value)

Will create a new custom workload and will call it limit_tempdb:

CREATE WORKLOAD GROUP limit_tempdb

WITH (

     GROUP_MAX_TEMPDB_DATA_MB = 200

     )

USING [default];

ALTER RESOURCE GOVERNOR RECONFIGURE;

You can check the current configured workloads at instance-level:

SELECT group_id,

       name,

       group_max_tempdb_data_mb,

       group_max_tempdb_data_percent

FROM sys.resource_governor_workload_groups;

Then, I will create a classifier function:

USE master;

GO

CREATE FUNCTION dbo.RG_UserNameClassifier()

RETURNS sysname

WITH SCHEMABINDING

AS

BEGIN

    IF (SUSER_SNAME() = ‘test’)

BEGIN

        RETURN ‘limit_tempdb’; 

END

    RETURN ‘default’;

END;

GO

ALTER RESOURCE GOVERNOR WITH (CLASSIFIER_FUNCTION = dbo.rg_classifier);

ALTER RESOURCE GOVERNOR RECONFIGURE;

I will then connect using “test” account using SQL Server Management Studio:

// I will create a dummy temporary table that will be created in TEMPDB database and populate it with dummy data intensively :

create table #test (Col1 varchar(80));

GO

insert into #test values (‘HELLO EMAD, HOW ARE YOU’)

GO 300000000

when the utilization reaches 200MB the following error will be thrown:

Msg 1138, Level 17, State 1, Procedure sp_checktempdb, Line 132 [Batch Start Line 0]

Could not allocate a new page for database ‘tempdb’ because that would exceed the limit set for workload group ‘limit_tempdb’, group_id 256

SQL Server 2025 Backup Acceleration with ZSTD compression algorithm

In SQL Server 2025 release a new backup enhancement feature was introduced by introducing new compression algorith “ZSTD” which will speed up backup performance compared to the traditional “MS_XPRESS” backup compression.

Let me explore perfomrance between the standard compression and new the compression algorithm:

Using  traditional compression backup algorithm the backup was taken in 9 seconds with a size of 777,192 KB

Using ZSTD compression algorithm backup was taken in 4 seconds with a size of  873,092 KB

So, as a conclusion the newly introduced compression algorithm is balances between size and speed in an optimized matter.

If you want this compression algorithm [ZSTD] to be used as a default in your instance :

If you face this error:

‘3’ is not a valid value for configuration option ‘backup compression algorithm’.

This is a known issue in CTP and will be fixed in future by Microsoft:

https://learn.microsoft.com/en-us/sql/sql-server/sql-server-2025-release-notes?view=sql-server-ver16#known-issues