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 landscape jigsaw puzzle has one loose matching piece beside its open space.

Why Opening an MDF File Directly Goes Wrong

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

Before you attach MDF file copies, check SQL Server versions, service permissions, and missing files, then choose a safer restore or attach path.

Read More
A child's hand printing the same red leaf shape in a row on brown paper with one carved potato stamp.

The WINDOW Clause: Name a Window Once and Reuse It

November 29, 2012
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Function, SQL Server, SQL Server 2022

Use the WINDOW clause to reuse partition and order rules, extend named windows with frames, and keep SQL Server calculations consistent.

Read More
Gouache painting of a toppled tower of wooden blocks caught by a thick red cushion on a toy shop floor

AutoRecover Settings in SSMS: Protect Your Unsaved Queries

November 28, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server Management Studio, SQL Utility

The AutoRecover settings in SSMS decide how often unsaved work is copied to disk and how long the copies are kept. This post shows where to find the two options, what they can and cannot protect, how to test them once, and which habit still matters more than any setting.

Read More
Two hill farms in separate valleys linked by one cart track over the ridge, a red cart traveling between them

Distributed Availability Groups: Linking Two Sites Without One Big Cluster

November 27, 2012
Pinal Dave
SQL Tips and Tricks
AlwaysOn, DBA, SQL High Availability, SQL Server Cluster

Understand distributed availability groups, connect two existing groups across sites, inspect health, and plan recovery without one cluster.

Read More
A cork borer and extracted core beside intact and fully opened cork stoppers

SAMPLED vs DETAILED: Running index_physical_stats Safely

November 26, 2012
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server

A misspelled table name quietly turns into a scan of everything. Here is the guard, and a fair comparison of the three scan modes on one small index.

Read More
SQL SERVER - Find Weekend and Weekdays from Datetime in SQL Server 2012

SQL SERVER – Find Weekend and Weekdays from Datetime in SQL Server 2012

November 25, 2012
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server, SQL Server 2012

Is today a weekend or a weekday? A question from the very first SQL Bangalore User Group meeting, answered with the CHOOSE function in SQL Server 2012.

Read More
A sewing machine stitching a long straight seam, a red spool turning on top.

Cursor Options That Matter: LOCAL, FAST_FORWARD and STATIC

November 24, 2012
Pinal Dave
SQL Tips and Tricks
SQL Cursor, SQL Server, SQL Stored Procedure, SQL TempDB

Test SQL Server cursor options, including LOCAL FAST_FORWARD and STATIC, on one loop while measuring time and tempdb cost.

Read More
Previous 1 … 506 507 508 509 510 511 512 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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