This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
MySQL - Dynamic SQL with EXECUTE and PREPARE Statements

MySQL – Dynamic SQL with EXECUTE and PREPARE Statements

June 20, 2014
Pinal Dave
SQL Tips and Tricks
MySQL

MySQL supports dynamic SQL with EXECUTE and PREPARE statements. Here is how to pass a table name as a parameter and return all rows from it.

Read More
SQL SERVER - Keeping MSDB System Database Lean and Fit - Notes from the Field #033

SQL SERVER – Keeping MSDB System Database Lean and Fit – Notes from the Field #033

June 19, 2014
Pinal Dave
SQL Performance
Notes from the Field, Shrinking Database, SQL Scripts

The MSDB database is one of the most ignored on any server. Tim shares his tricks to keep the MSDB system database lean, fit and at its best settings.

Read More
Gouache painting of divided card storage with reserved gaps beside a channel feeding in additional cards.

Change Fill Factor in SQL Server: SQL in Sixty Seconds #069

June 18, 2014
Pinal Dave
SQL Video
SQL Data Storage, SQL in Sixty Seconds, SQL Index, SQL Scripts

To change fill factor for an index, rebuild it with a new FILLFACTOR value. The tests here measure what 100, 80 and 50 do to page count, scan reads and page splits, and when a lower value is not worth the space.

Read More
Two empty drain catch baskets, one wet and one dry, beside loose leaves

Finding Databases That Have Never Been Backed Up

June 17, 2014
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL DMV, SQL Monitoring

Your backup job is green, but is every database in it? Here is a read-only way to find the ones missing from msdb history.

Read More
Two lakeside cabins built from one plan, one with an added porch and a missing window, one red door

Comparing Two Schemas With sys.columns and a FULL OUTER JOIN

June 16, 2014
Pinal Dave
SQL Tips and Tricks
Schema, SQL Joins, SQL Scripts, SQL System Table

Use read-only queries for comparing two schemas, finding missing columns, checking type details, and reviewing indexes and modules.

Read More
Two cream tickets with matching red circles sit beside one blue parcel in a wooden compartment.

SQL Server: Why Retrying an INSERT Can Create Duplicate Rows

June 15, 2014
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server

Retrying an INSERT can create duplicate rows even with an identity primary key. These tested examples use a stable request ID to return the original order, reject changed inputs, and preserve unrelated errors.

Read More
A walker seen from behind pauses where a woodland footpath splits into a narrow path and a wider one.

GDR or CU: Choosing Your Update Branch

June 14, 2014
Pinal Dave
SQL Tips and Tricks
Cumulative Update, DBA, SQL Patch, SQL Server, SQL Server Security

Choose GDR or CU for SQL Server by understanding security and cumulative branches, checking the exact build, and testing a branch change.

Read More
Previous 1 … 430 431 432 433 434 435 436 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com