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
A wooden door with three brass bells hanging on cords, each with a small red tassel.

Types of Triggers Quiz: Which Trigger Can Fire on a View?

January 3, 2012
Pinal Dave
SQL Puzzle
SQL Error Messages, SQL Table Operation, SQL Trigger, SQL View

This Types of Triggers Quiz asks which trigger you can put on a view that joins two tables. The answer is INSTEAD OF INSERT. A tested script shows the error an AFTER trigger gives and how the working trigger splits one insert into two tables.

Read More
A hand holding a long cinnamon stick against a short glass spice vial that it clearly does not fit.

Checking Data Fits Before Narrowing a Column Data Type

May 16, 2011
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Datatype, SQL Server, SQL Table Operation

Check existing values before narrowing a column, account for dependencies and data loss, and plan the locking cost of the change.

Read More
A table top used as a template, traced in pencil onto a fresh sheet of plywood on trestles.

SQL SERVER – CTAS – Create Table As SELECT – What is CTAS?

April 30, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Table Operation

CTAS stands for Create Table As Select. In SQL Server you do it with SELECT INTO, which creates the new table and fills it with data in one step.

Read More
OUTPUT INTO illustrated by a botanical printing block, blue and ochre impressions and a preserved paper stack on a printmaking bench.

OUTPUT INTO: Record Old and New Values in One Write

February 7, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Table Operation

OUTPUT INTO records old and new values during a write, while the transaction determines whether the change survives. Test NULL transitions, unchanged values, rollback and target failures before treating captured rows as committed history.

Read More
A mandoline slices a cucumber beside separate dishes of cucumber and radish slices.

Turning a Comma-Separated Column Into a Proper Child Table

December 20, 2010
Pinal Dave
SQL Tips and Tricks
CSV, Normalization, SQL Constraint and Keys, SQL String, SQL Table Operation

A list stuffed in one column makes every search a guess. Split it, clean it and move it into a child table, then check the result before you drop anything.

Read More
Three leaf-pattern cloth samples mounted together in a wooden frame on a workshop bench.

Multi-Language Text: A Table Design for Translations

May 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Table Operation, Unicode

Multi-language text separates product identity from translated names. This test setup checks requested, fallback, and base names, Unicode text, duplicate tags, missing rows, and a precise blank policy.

Read More
A hand lifting one small seed packet from a slim drawer, heavy seed sacks stacked behind it.

Keeping Large Blobs Out of Your Main Tables

January 23, 2010
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Datatype, SQL Server, SQL Table Operation

Large blobs can widen SQL Server access paths and backups; learn to separate payloads, avoid SELECT *, and measure off-row storage behavior.

Read More
Previous 1 … 8 9 10 11 12 Next
  • Books
  • Testimonials
  • Privacy Policy

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