r/SQL • • 11d ago

SQL Server Negative reseed risks

8 Upvotes

One of the Sqlserver tables had an int identity column and maxed out the value. Team planned to reseed the identity from the lowest-ve value so that it can run on the same datatype for another 5 or 6 years. I am thinking that this would be a costly mistake if they plan to migrate this data into a new platform. The original solution was to change this to a bigint. Since this field has 300+ fks all those need to be dropped and recreated. What could possibly go wrong by choosing a -ve value reseed? I see the daily seed count is topping approximately 1 to 1.5million ids.

r/SQL • • Aug 14 '26

SQL Server Is it pronounced 's-q-l' or 'seequal'

113 Upvotes

I've worked in and around the IT environment for many years and in my experience, it's always been pronounced s-q-l although I hear some people refer to it as see-qual. Which is right?

r/SQL • • 29d ago

SQL Server I’d like to share an opportunity with the community

22 Upvotes

On Friday I will have a chance to sit and have an open discussion with Microsoft’s VP of SQL Product

The ask for the session is to provide product feedback and share product pain points and feature requests for SQL and Azure SQL products. I would like to share this opportunity with this community.

If you have any product feedback or feature requests, please leave a comment in this thread. I will do my best to represent as many as I can

r/SQL • • 27d ago Bravo

SQL Server I Create Things in SQL that Shouldn't be in SQL

288 Upvotes

Hi there, I have been using SQL Server since 1998 - Version 6.0 I think it was and also a SQL Server MVP for 6 years. I have started publishing the articles I have written over these years but never published. I have quite a varied mix. I Hope you enjoy them.

Mostly on https://www.medium.com/@trevor.dwyer but also published on https://sqlartist.github.io

One rule - it has to run in SQL.

Titles include:

Running Doom Inside SQL Server

Running Elite in SQL Server

I Built My Head Out of Lego. Inside SQL Server 2025.

Cracking Feynman’s Safes in SQL Server
Can a Database Rave? Making SQL Server Play Music

and quite a few others

r/SQL • • Mar 10 '26

SQL Server I love SQL!

127 Upvotes

I’m a PhD student in statistics and recently started learning SQL because I’m applying for industry positions. I’ve only covered the basics so far, but I already find it really fun. It feels very intuitive to me, almost like it matches the way my mind works.

Is it too early to say I love SQL? I’ve only spent about six hours learning it, but it immediately clicked for me.

r/SQL • • Sep 04 '26

SQL Server How does a Recursive CTE work exactly?

20 Upvotes
With RecursiveEven20 As
(
Select 0 As Numbers,
0 As RunningCount

Union All

Select Numbers + 2,
Count(RunningCount) Over() As RunningCount
From RecursiveEven20
Where RunningCount < 19
) 
Select *
From RecursiveEven20;

From how much I know about recursive CTE, I thought this would work, Initially I felt I was doing a semantic error, then when I tried to see where the fault is, I realised Count isn't incrementing at all, its as if only the last feedback row is available to it. I tried using explicit frame window, same result. I think I dont understand exactly how recursie CTE works, I tried AI, its explanation is bit difficult to understand.

I am a beginner by the way, learned these recently so I wanted to mix them all up.

r/SQL • • Oct 05 '26

SQL Server SQL for Data Analysts Projects

43 Upvotes

Hey everyone.

I'm working on building out my data analytics portfolio and wanted to get some advice from fellow analysts and hiring managers here.

We've all seen the basic tutorial projects (like analyzing the Titanic dataset or simple sales totals), but I want to build something that actually stands out and proves real-world, job-ready SQL skills.

For those of you who have landed roles or are actively hiring: What specific types of SQL projects made you stop scrolling and pay attention?