000 BB
SQL PortalSource
SQL Portal

SQL Portal

News · November 272 news items

Partial Rollbacks Inside an SQL Transaction: How SAVEPOINT Saves an Order When Payment Fails

A plain ROLLBACK cancels an entire SQL transaction even if the failure happened on the final step. SAVEPOINT sets a checkpoint inside the transaction: using ROLLBACK TO SAVEPOINT, you can undo only the failed payment, keep the order intact, and finish with COMMIT without hitting subtransaction limits.

Column Order in a Composite SQL Index: Why (CustomerID, Status, OrderDate) Works and Reverse Order Doesn't

Adding an index covering all your query columns doesn't guarantee speed: put them in the wrong order, and the database still scans extra rows and re-sorts them. Using an Orders table example, here is why high-selectivity equality filters belong at the start of the key while date sorting goes at the very end.

NeuroBober

Summaries of paid courses and private communities: just the core ideas, frameworks, and checklists—no fluff, no loss of quality.

РусскийEnglishEspañol
AboutMediaContacts & supportPartnershipsFor Rights HoldersFAQTerms of ServicePrivacy Policy
Contacts: welcome@neurobober.com

We use cookies to personalize services and improve your browsing experience. If you don't agree, please adjust your browser settings.

© 2026. NeuroBober