Tag: SQL
-
How to Prevent Identity Column Exhaustion in SQL Server
As a software developer, you’ll likely work with one or multiple database systems that integrate with your applications. One of these database systems is Microsoft’s SQL Server. In this post, I’d like to list some tasks you might consider to reduce headaches and make your work more enjoyable. Microsoft SQL Server is a fantastic relational…
-
How to (efficiently) delete millions of records in a SQL table
[Updated on 2024-06-30 based on feedback from comments] A while ago, I blogged about how to efficiently update millions of records in a SQL table, today I’d like to show you a simple trick to do the same when deleting millions of records in a SQL table. The idea is the same, you don’t want…
-
How to (efficiently) update millions of records in a SQL table
You need to update one or more columns in a table with millions of records with data from another table, what’s a good way of going this with low risk and in an optimized way? One of my favorite ways of dealing with millions of records in a table is processing inserts, deletes, or updates…