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 small wooden organizer separates blank index cards into several tidy compartments.

Finding the Right System View for the Question You Have

November 30, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Choose SQL Server system views by the question they answer, distinguish catalog metadata from runtime counters, and understand reset boundaries.

Read More
Two wicker baskets hold cream and blue twine balls beside an empty basket and a small shared tray.

AND and OR: Parentheses Make Predicate Precedence Clear

November 29, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server

AND and OR predicates need explicit grouping. Use a complete small truth table to expose which alternatives share a common requirement.

Read More
A narrow footbridge with one walker crossing and two waiting on the bank, a wider stone bridge further downstream

SQLite or SQL Server Express for a Small App

November 25, 2007
Pinal Dave
SQL Tips and Tricks
Developer, SQL Backup and Restore, SQL Server, SQL Server Express

SQLite or SQL Server Express depends on write concurrency, deployment, backup, and the growth path your small application really needs.

Read More
Two wooden trays of blue and pale stones, with one loose blue stone between them.

Multiset Intersection: Keep the Matching Duplicate Occurrences

November 24, 2007
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Joins, SQL Scripts, SQL Server

Multiset intersection keeps the duplicate count shared by both inputs rather than returning each common value once. I pair numbered occurrences to express that requirement. The result should contain the smaller count for each equivalent value.

Read More
Two rows of small ceramic vessels on a wooden tray beside folded woven cloth with a brass clasp.

Binary Conversion Styles: Hex With and Without 0x

November 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Server

Binary conversion styles control hexadecimal prefixes. Pair the output and input styles, preserve empty bytes and verify a complete round trip.

Read More
Truncate Log File

SQL SERVER – Shrinking Truncate Log File – Log Full – Part 2

November 22, 2007
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Backup and Restore, SQL Server, Transaction Log

About a year ago, I wrote SQL SERVER – Shrinking Truncate Log File – Log Full. I was just going through some of the earlier posts and comments.

Read More
SQL SERVER - Generate Incremented Linear Number Sequence

SQL SERVER – Generate Incremented Linear Number Sequence

November 21, 2007
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

A reader asked how to generate an incremented linear number sequence in SQL Server, like a sequence in Oracle. A short WHILE loop script does it.

Read More
Previous 1 … 414 415 416 417 418 419 420 … 438 Next
  • Books
  • Testimonials
  • Privacy Policy

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