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
SQL SERVER - Definition, Comparison and Difference between HAVING and WHERE Clause

SQL SERVER – Definition, Comparison and Difference between HAVING and WHERE Clause

July 4, 2007
Pinal Dave
SQL Interview Questions and Answers
Best Practices, SQL Scripts

I asked every candidate the difference between HAVING and WHERE clause, and none got it right. HAVING filters groups, while WHERE filters individual rows.

Read More
SQL SERVER - Recompile All The Stored Procedure on Specific Table

SQL SERVER – Recompile All The Stored Procedure on Specific Table

June 29, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Stored Procedure

After BCP or DTS mass inserts, stored procedures can slow down. I use sp_recompile to recompile all the stored procedure on a table, or just one procedure.

Read More
A plain envelope is opened beside a magnifying glass and several blank paper slips.

How to Read a SQL Server Error Message

June 13, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Read a SQL Server error message by separating its number, severity, state, procedure, and line, then preserve the context needed to investigate.

Read More
A wooden mannequin tangled in yarn standing proudly in front of perfectly tidy drawers

Normalization Jokes and the Normal Forms They Make Fun Of

June 12, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, Normalization, SQL Humor

Normalization jokes are funny because they are true. Here are the classics in my own words, and the first three normal forms they poke fun at.

Read More
A gouache joinery bench contrasts incompatible grooved pieces with a smoothly matched pair, beside a red checking peg.

SQL SERVER – Cannot Resolve Collation Conflict For Equal to Operation

June 11, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Collation, SQL Error Messages, SQL Joins, SQL Scripts, SQL Server

A collation conflict means character expressions use incompatible comparison rules. I choose the intended rules before applying COLLATE.

Read More
Gouache illustration for the date part example: a fern and its simplified outline beside a wooden press.

SQL SERVER – Retrieve – Select Only Date Part From DateTime – Best Practice

June 10, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL DateTime, SQL Function, SQL Scripts, SQL Server

Selecting the date part and formatting it are different tasks. I keep typed dates for calculations and text for display.

Read More
Five small carts each carrying one crate, beside one cart carrying all five together.

SQL SERVER – Insert Multiple Records Using One Insert Statement – Use of UNION ALL

June 8, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server, SQL Union clause

Insert multiple records with one INSERT statement by combining SELECT and UNION ALL, instead of a separate INSERT for every row. SQL Server 2008 has a newer way.

Read More
Previous 1 … 48 49 50 51 52 53 54 Next
  • Books
  • Testimonials
  • Privacy Policy

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