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 long cord of wooden beads tied to a brass ring, every seventh bead red, a fingertip on the first

Finding the First Monday of Every Month in T-SQL

May 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

Calculate the first Monday without DATEFIRST, list a full year, find nth and last weekdays, and reuse the rules in an inline table function.

Read More
A nested set of copper measuring cups on a hook, with one stray cup from a different set lying on the counter below.

Where Reference Data Should Live

May 7, 2010
Pinal Dave
SQL Tips and Tricks
Data Warehousing, Master Data Services, SQL Constraint and Keys, SQL Server

Reference data belongs in governed lookup tables with stable codes, clear owners, and a release process that keeps environments aligned.

Read More
A brass balance scale on a market stall weighing a heap of vegetables against a stack of plain iron weights.

Estimating Cloud Database Cost From Your Workload

May 6, 2010
Pinal Dave
SQL Tips and Tricks
Cloud Computing, SQL Azure, SQL Licensing, SQL Migration

Cloud database cost depends on measured compute, storage, backup retention, and network egress; build a workload-based estimate before migrating.

Read More
A home wifi router beside a locked padlock and a closed photo album

SQLAuthority News – Wireless Router Security and Attached Devices – Complex Password

May 6, 2010
Pinal Dave
SQLAuthority News
SQL Server Security

Strange emails and a missing shared folder led me to a reset router with a weak key. My lesson on wireless router security and complex passwords.

Read More
SQL SERVER - Get Latest SQL Query for Sessions - DMV

SQL SERVER – Get Latest SQL Query for Sessions – DMV

May 5, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

Want the latest SQL query for sessions on your server? Join sys.dm_exec_connections with sys.dm_exec_sql_text using most_recent_sql_handle.

Read More
Loose wooden dowels and tied bundles rest on a slate tray beside four bundles inside an open wooden crate.

Aggregate Before the Join: Shrinking Rows Early With GROUP BY

May 4, 2010
Pinal Dave
SQL Performance
SQL Group By, SQL Joins, SQL Performance

Aggregate before the join only when the grouping preserves the required customer result. This private lab checks NULLs, missing matches, duplicate dimensions, complete outputs, actual plans, and reads.

Read More
SQL SERVER - SHRINKFILE and TRUNCATE Log File in SQL Server 2008

SQL SERVER – SHRINKFILE and TRUNCATE Log File in SQL Server 2008

May 3, 2010
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts

A reader’s job failed after upgrading to SQL Server 2008 because TRUNCATE_ONLY is gone. My notes on SHRINKFILE and TRUNCATE Log File, and what to watch for.

Read More
Previous 1 … 648 649 650 651 652 653 654 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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