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

An Unlimited Token Budget

I don't like unbounded situations. I'm always wary of "unlimited" or "lifetime" offers, as I think they're entirely too optimistic. A few people on an endless cruise recently learned this. An unlimited offer is only as good as the company that provides it, and many companies have either gone bankrupt, failed, or had to alter the terms of their amazing offer (T-Mobile, American, Red Lobster, Movie Pass).

Similarly, I've always been worried about giving developers unlimited resources, especially in places like Cloud CI systems. I've seen how often (I and other) developers will make commits, submit PRs, amend those, make new commits, etc. I don't like the idea of potential uncapped builds or the costs they entail. Similarly, the bursting that some monitoring products offer in the cloud to capture all data can sometimes result in extremely high bills. Especially when it's easy for users to add systems or change configurations that create additional compute or storage requirements. Vendors love this, as they get increased billing without the hassle of a sales effort.

I saw Cisco recently offer a developer unlimited tokens. This isn't quite as open-ended as it appears, and I do like the approach of a short timebox in which to experiment. A young developer has 4 weeks to create a PoC (proof-of-concept) showing he can use AI to rewrite legacy Cisco code. That's a place AI might shine, and it's well scoped. We know how their code works; we can write tests around it, and there's likely a lot of training data available on how the systems work. The goal is 98% of their code rewritten in 2 years. I don't know what the estimate would be for a rewrite with humans, but I'd guess this would be in man-years, maybe man-decades.

It's a challenge from the President, and if it works, well, I don't know. If this is to prove AI can work well and inspire other engineers, maybe that's good. Maybe it's worth millions of dollars. And at unlimited token budgets, with creative engineers able to spin up hundreds (or thousands) of agents, it might be millions in cost.

Per year.

Or per month.

I am rooting for this to continue past 4 weeks as it's a great case study. Can a human rewrite lots of code effectively with agents? Can a human truly manage a swarm of agents with a well known and scoped target? There have been plenty of people experimenting here, but they are often doing so for research or fun, without a real goal other than to see what works. Cisco is making a business project here, and the results will be fascinating. Even a failure will teach us something.

Even if it's only about AI finance impacts from an engineer without any quotas.

This will be an interesting story, and I hope Cisco provides updates and results. I suspect those reports might be light on details, but I will be following along.

Steve Jones - SSC Editor

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

 
 Featured Contents
SQLServerCentral Article

Why Successful SQL Server Backups Are Not Enough

Almighty from SQLServerCentral

A backup job can complete successfully, the backup can pass RESTORE VERIFYONLY, and SQL Server can have a complete record of that backup in msdb. And yet, when the restore is needed, the required recovery point may still be unreachable.

External Article

2NF and BCNF explained: the whole key, nothing but the key

Additional Articles from SimpleTalk

The classic mnemonic — “the key, the whole key, and nothing but the key” — captures all three normal forms in one line. This guide breaks down what each rule actually means, using worked examples you can apply to your own schema.

Blog Post

From the SQL Server Central Blogs - Yippee-Kai-Yay 2027 Summit in Denver

Steve Jones - SSC Editor from The Voice of the DBA

Next year the PASS Data Community Summit is in DENVER! and London, but Denver is the big news. My hometown and I’m excited. And tickets are cheaper. $799 now,...

From the SQL Server Central Blogs - How I Built RAG for My Accounting App on Bedrock and pgvector

epivaral from SQL Guatemala

The first version of my accounting assistant could not find a single purchase of "comida" in a database full of lunches, missed the clothing rule sitting right there in...

Delta Lake: The Definitive Guide: Modern Data Lakehouse Architectures with Data Lakes

Site Owners from SQLServerCentral

Ready to simplify the process of building data lakehouses and data pipelines at scale? In this practical guide, learn how Delta Lake is helping data engineers, data scientists, and data analysts overcome key data reliability challenges with modern data engineering and management techniques.

 

 Question of the Day

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

 

Adding Bits II

I have a table, dbo.bittest, where I am testing an application response. This has this structure:
CREATE TABLE [dbo].[BitTest]
(
[insertdate] [datetime] NULL CONSTRAINT [DF__BitTest__insertd__300F11AC] DEFAULT (getdate()),
[a] [bit] NULL
) ON [PRIMARY]
GO
My application runs this code:
INSERT dbo.BitTest
(
    insertdate,
    a
)
VALUES
(DEFAULT, true)
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)

Switching Schema II

I run this query:

SELECT 
 s.name AS schemaname
 , o.name AS objectname
 FROM sys.objects o
 INNER JOIN sys.schemas s ON s.schema_id = o.schema_id
 WHERE o.name = 'Beer'

I get two rows back for the objects, named dbo.beer and etl.beer. Both the tables have identical schemas and are not partitioned. There are 25 rows in dbo.beer and 0 rows in etl.beer.

I run this code:

ALTER TABLE dbo.beer switch TO etl.beer

What happens?

Answer: dbo.beer has 0 rows and etl.beer has 25 rows

Explanation: This command works with nonpartitioned tables. In this case, it switches the rows from one table to the other, so dbo.beer has no rows now and etl.beer has 25 rows. Ref" ALTER TABLE - https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-table-transact-sql?view=sql-server-ver17#arguments

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.


Anything that is NOT about SQL!
Life hack that has worked well for me - I wrote about this several years ago but will contribute again a life hack that has helped me.  It comes to mind again as I have just had to have a new pair of glasses made again because they did not follow my prescription.  Many of us spend many hours looking at computer displays, in […]
Editorials
Pay for Performance - Comments posted to this topic are about the item Pay for Performance, which is is not currently available on the site.
Helping an English Student with R - Comments posted to this topic are about the item Helping an English Student with R
PASS Summit Week - Comments posted to this topic are about the item PASS Summit Week
My PASS Summit West 2026 - Comments posted to this topic are about the item My PASS Summit West 2026
Article Discussions by Author
Adding Bits I - Comments posted to this topic are about the item Adding Bits I
Implementing System-Versioned Temporal Tables in SQL Server: A Practical Guide - Comments posted to this topic are about the item Implementing System-Versioned Temporal Tables in SQL Server: A Practical Guide
Switching Schemas I - Comments posted to this topic are about the item Switching Schemas I
Enforcing Unique Customer Emails When Duplicates Already Exist - Comments posted to this topic are about the item Enforcing Unique Customer Emails When Duplicates Already Exist
Too Many Choices - Comments posted to this topic are about the item Too Many Choices
Table Partitioning in SQL Server: A Practical Guide to Managing Very Large Tables (VLDBs) - Comments posted to this topic are about the item Table Partitioning in SQL Server: A Practical Guide to Managing Very Large Tables (VLDBs)
Packing and Decoding Device Status Codes with LEFT_SHIFT() and RIGHT_SHIFT() in SQL Server - Comments posted to this topic are about the item Packing and Decoding Device Status Codes with LEFT_SHIFT() and RIGHT_SHIFT() in SQL Server
SQL Server Audit Failures - Comments posted to this topic are about the item SQL Server Audit Failures
SQL Server 2022 - Development
Trying to make this faster using not exists - Hi I have this query that is slow during the 'not in' part of the statement: LEFT JOIN dbo.benefitplan BP ON BP.benefitplan_id = ci.benefitplan_id LEFT JOIN dbo.benefitplan_type pt ON pt.benefitplan_type_id = BP.benefitplan_type_id WHERE k.BatchSeq BETWEEN '1' AND '1000000' AND ci.claim_procedure_id NOT IN (35381320,35381310,35381304,35381305,35381311,35381306,35345478,35381307,35381293,35381308,35392585, 35392587,35381298,35381321,35345407,35381324,35392582,35381326,35381299,35381325,35381295,35381323,35345410,35381297, 35336186,35381314,35345409,35381319,35392584,35336187,35336218,35336217,35381312,35381294,35381303,35381296,35381318, 35381300,35381327,35381315,35381317,35336185,35381309,35381322,35392586,35381313,35345408,35392583,35345477,35381316) where k.BatchSeq BETWEEN '1' AND '1000000' So I thought […]
Slow - Linked server query - Hi I have this slow query that is pulling data from a linked server. This is the slow part of the statement: SELECT c_sub.claim_id, MAX(cs.status_type) AS clm_status_type FROM dbo.tblBatchKeys k_sub INNER JOIN [SQL22.CARE.NET\SQL22NODEASTAGE]PROD.dbo.claim c_sub ON c_sub.claim_id = k_sub.claim_id INNER JOIN [SQL22.CARE.NET\SQL22NODEASTAGE].PROD.dbo.claim_procedure ci_sub ON c_sub.claim_id = ci_sub.claim_id AND ci_sub.claim_procedure_id = k_sub.claim_procedure_id INNER JOIN [SQL22.CARE.NET\SQL22NODEASTAGE].PROD.dbo.claim_procedure_status cs ON […]
 

 

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

 

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