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

Who is Using Standard Edition?

For many years, most of the SQL Server installations I managed or deployed to were Standard Edition. Even in large companies that had agreements with Microsoft, since each instance had a cost (even at a discount), we were careful about where we installed Enterprise Edition.

These days with Microsoft wanting to charge everyone for every core, it makes sense to use Standard Edition wherever you can.

One great change for those of us that need to develop for Standard Edition is what Joey calls the most requested feature for SQL Server 2025. We can now install a Standard version of the Developer Edition. This is something many teams have desired since developers tend to use the features available to them, and until now, every Developer Edition has been equivalent to Enterprise Edition (EE). This has resulted in lots of scripts that use EE features, which won't run on production Standard Edition servers.

I'm wondering how many of you out there are running standard edition? Leave a comment and let us know. I suspect there are plenty of organizations who have simple apps and run Standard to save money. I know I've had many employers that wanted to do this, especially for systems that didn't need large numbers of cores.

I wanted to write about a Standard version of Developer edition as an April Fool's joke in 2024 but was told not to do it. I suspected this version was coming, and I'm glad that it's finally announced. As long as we have different features in different editions, we need a developer version of each edition.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

How to create your custom GPT SQL Expert

Daniel Calbimonte from SQLServerCentral

Introduction ChatGPT includes custom GPTs. You can create your own custom GPT. In this article, we will demonstrate how to create a custom GPT expert in SQL Server. Requirements To create your own GPT, you need to use the paid version of ChatGPT. First, go to ChatGPT. Secondly, if you don’t have the paid version, […]

External Article

Common SQL Server Problems: Network Related or Instance Specific Error Occurred

Additional Articles from SimpleTalk

This is the first in a series of articles meant to provide practical solutions to common issues. In this post, we’ll talk about one of the most pervasive error messages out there:

Blog Post

From the SQL Server Central Blogs - SQL Server Maintenance Plans

Kevin3NF from Dallas DBAs

If you’re a DBA, sysadmin, IT manager, or Accidental DBA, you’ve probably seen SQL Server’s built-in Maintenance Plans. They live right there in SSMS under the “Management” node, quietly...

Blog Post

From the SQL Server Central Blogs - SQL Server Migration Made Easy: A Complete Guide to Microsoft DMA and Its Successors

Rohit Garg from MSSQLFUN

Migrating SQL Server databases is a critical task for IT teams aiming to modernize infrastructure, improve performance, or transition to cloud platforms. One of the most widely used tools...

The Unicorn Project

Site Owners from SQLServerCentral

In The Unicorn Project, we follow Maxine, a senior lead developer and architect, as she is exiled to the Phoenix Project, to the horror of her friends and colleagues, as punishment for contributing to a payroll outage. She tries to survive in what feels like a heartless and uncaring bureaucracy and to work within a system where no one can get anything done without endless committees, paperwork, and approvals.

 

 Question of the Day

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

 

Getting the SQL

If I run this code, what is returned?
SELECT *
 FROM sys.fn_get_sql(0x0500FF7F149270E460F3E0ADD701000001000000000000000000000000000000000000000000000000000000) AS fgs

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)

Determining the Updated Columns

I am creating a trigger in SQL Server 2022 and want to detect a change in a table. Here is my table DDL:

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 want to detect that the creditlimit was updated, what IF statements should I use?

Answer: IF (SUBSTRING(COLUMNS_UPDATED(),2,1) & 2) = 2

Explanation: The COLUMNS_UPDATED() function only returns a varbinary value of bytes representing the column changes. Beyond the first 8 columns, we need to use the substring function to get the correct byte for the columns. In this case, the credit limit column is the 10th column, so we need the second byte and we are looking for the 2nd bit being changed. 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
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
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
Critical Data and Insomnia - Comments posted to this topic are about the item Critical Data and Insomnia
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
Data recovery from an Index - Comments posted to this topic are about the item Data recovery from an Index
Working with Indexes on SSMS - Comments posted to this topic are about the item Working with Indexes on SSMS
SQL Server Threats - Comments posted to this topic are about the item SQL Server Threats
SQL Server Threats - Comments posted to this topic are about the item SQL Server Threats
SQL Server 2022 - Administration
Can a Database be in an AG and do log shipping at the same time? - Hello, I have a large database about 8 GB.  It is in an AG. I have three replicas (Replica1, Replica2 and Replica3) Replica1 is Primary and healthy Replica2 is Secondary and heathy Replica3 is Secondary and not healthy.   I need get Replica3 healthy again.  My thought was to wait until after the normal backup […]
SQL CAL based Licensing - Hi Folks, I am about to purchase SQL server licences and need your advice on the Device CAL model. I understand we have to pay for the server license and then as per device count. SO if we have  2 application servers , with each routing 5 client connections, do I have to pay for […]
SQL Server 2022 - Development
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

 

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