Skip to content

WebCheatSheet

The easy way to know

  • PHP
  • HTML
  • JavaScript
  • SQL
  • ASP
  • MS Access Functions
  • SaaS
  • Email

Category: SQL

SQL

Run Ola Hallengren SQL Server Backups in Parallel

Sergey KornilovOctober 6, 2026

Run multiple DatabaseBackup jobs with the same queue parameters, and group databases by policy when retention or compression settings differ.

SQL

Fix MySQL Error 1054: Unknown Column

Sergey KornilovOctober 6, 2026

Trace MySQL error 1054 to a misspelled name, wrong alias, unavailable scope, outdated schema, or incorrectly quoted string.

SQL

Use Composite IN Conditions with Postgres.js

Sergey KornilovOctober 6, 2026

Match multiple pairs of PostgreSQL values safely from Postgres.js by joining against a parameterized VALUES table.

SQL

Archive Old MySQL Rows Without Losing History

Sergey KornilovOctober 6, 2026

Move finalized MySQL rows into an independently backed-up archive, verify the copy, and delete production data in controlled batches.

SQL

Understand Where SQL Server Parameters Are Allowed

Sergey KornilovOctober 5, 2026

Use SQL Server parameters for scalar data values, not table names, keywords, or grammar positions that require identifiers or string literals.

SQL

Restore a SQL Server METADATA_ONLY Snapshot Backup

Sergey KornilovOctober 5, 2026

Restore a SQL Server 2022 snapshot backup by mounting its snapshot files, identifying the backup set and database, and using METADATA_ONLY with MOVE.

SQL

Import Spreadsheet Data into Normalized SQL Server Tables

Sergey KornilovOctober 4, 2026

Load spreadsheet rows into a SQL Server staging table, validate them, and use one explicit transaction to populate parent and child tables safely.

SQL

Get the Latest MySQL Value Before Two Dates

Sergey KornilovOctober 3, 2026

Find each person’s last recorded value on or before two cutoff dates with one grouped pass and indexed joins back to the matching MySQL rows.

SQL

Verify SQL Server Backups with CHECKSUM and VERIFYONLY

Sergey KornilovOctober 3, 2026

Use BACKUP WITH CHECKSUM and RESTORE VERIFYONLY to detect media problems, then perform test restores and DBCC CHECKDB for stronger recovery assurance.

SQL

When to Use a Composite Primary Key

Sergey KornilovOctober 2, 2026

Use a composite primary key when multiple stable columns together are the row identity, and choose a surrogate key when references need a compact stable identifier.

Posts navigation

Older posts
Newer posts

Recent Posts

  • Remove a UTF-8 BOM Before Parsing YAML in PHP
  • Do Not Reset MySQL Reserved Accounts During an Upgrade
  • Detect Unsupported Audio Formats in an HTML Player
  • Fix SQL Server Error 4104 After Wrapping a Query for Paging
  • Handle Delegated Button Clicks When the Icon Is Clicked

Recent Comments

  1. Build Accessible Tabs with JavaScript – WebCheatSheet on How to Control Tab Order in HTML
  2. Verify SQL Server Backups with CHECKSUM and VERIFYONLY – WebCheatSheet on Fix SQL Server ‘Insufficient Access Rights’ During Backup
  3. Get the Latest MySQL Value Before Two Dates – WebCheatSheet on SQL GROUP BY
  4. Count Duplicate Values in a JavaScript Array – WebCheatSheet on JavaScript Arrays
  5. Fix MySQL Error 1038 for Wide Rows and Filesort – WebCheatSheet on Determine the MySQL Version from the Command Line

Archives

  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • October 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

Categories

  • ASP
  • Email
  • HTML
  • JavaScript
  • MS Access Functions
  • PHP
  • SaaS Architecture
  • SQL
  • Uncategorized
Copyright © 2026 WebCheatSheetFresh News by Ascendoor | Powered by WordPress.