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
Seven smooth stones on a wooden tray beside a sage bowl, with one stone tied in red ribbon and a pale folded cloth.

Stable Weekday Numbers Without Changing DATEFIRST

August 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Stable weekday numbers use a fixed Monday anchor and negative-safe modulo. Map Monday to one without changing DATEFIRST or session language.

Read More
A long string of bunting laid out on a village green while two hands check the last knot

Generating Backup Commands for Every Database With STRING_AGG

August 17, 2008
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Scripts, SQL String

Use STRING_AGG for generating backup commands with copy-only backups, checksums, safe database names, and dated files for careful review.

Read More
Three potted herbs and a blank notebook sit beside a magnifying glass on a painted garden bench

SQL Server Tips: Temporary Tables, Constraints and Agent

August 16, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Server Agent, SQL TempDB

Temporary tables, constraints and SQL Server Agent each solve a different problem. Choose an appropriate temporary-table scope, use declarative rules for data integrity and give scheduled jobs clear ownership and failure handling.

Read More
A hand redrawing one of several pinned maps with a red pencil to match a changed road

sp_refreshsqlmodule: Refreshing Views and Procedures After a Table Change

August 15, 2008
Pinal Dave
SQL Tips and Tricks
SQL Dependency, SQL Server, SQL Stored Procedure, SQL View

Use sp_refreshsqlmodule to refresh changed table dependencies, inspect stale view columns, and protect stable contracts with schema binding.

Read More
SQL SERVER - 2008 - Introduction to Online Indexing Operation

SQL SERVER – 2008 – Introduction to Online Indexing Operation

August 15, 2008
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

An introduction to online indexing in SQL Server, which lets you create or rebuild an index while the table stays available to your app.

Read More
Two gooseberry rows and two harvest baskets stand beside a wooden crossbar spanning both rows.

Year-to-Date Totals Next to the Same Period Last Year

August 14, 2008
Pinal Dave
SQL Tips and Tricks
Best Practices, Business Intelligence, SQL DateTime

A fair year-to-date comparison needs the same dates from last year. Here is a short query, plus the leap day trap.

Read More
A hand cutting a sugarcane stalk at its natural joints on a chopping block, the cut sections lying in a row beside it.

Splitting a URL Into Host, Path and Query String in T-SQL

August 13, 2008
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

Practice splitting a URL into host, path, and query values with T-SQL string functions, SQL Server 2025 regex, and ordered parameter rows.

Read More
A railway track splits in two at a rural junction, an iron points lever pulled toward the narrower branch.

Named Instances and Default Instances

August 12, 2008
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL Instance, SQL Server, SQL Server Configuration

Named instances and default instances differ in connection strings, ports, SQL Browser discovery, and the operations each one needs.

Read More
A hand measuring the sleeve of a finished jacket on a dress form with a cloth tape measure

Finding Column Definitions Without the Documentation

August 12, 2008
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Documentation, SQL Server, SQL System Table

Find column definitions in SQL Server with sys.columns, sys.types, and sys.all_columns, including length, nullability, and system objects.

Read More
Two separate stone water troughs in a farmyard, one large and one small

Choosing Where to Put Data and Log Files

August 11, 2008
Pinal Dave
SQL Tips and Tricks
DBA, Disk, SQL Data Storage, SQL Server Configuration, Transaction Log

Choosing where data and log files live means checking storage behavior, capacity, install defaults, and a tested move procedure.

Read More
Previous 1 … 519 520 521 522 523 524 525 … 588 Next
  • Books
  • Testimonials
  • Privacy Policy

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