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
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
Gouache painting: two wooden fermenting vats stand on a cellar floor, one narrow and one wide

ABS: Widen an Integer Before Taking Its Magnitude

August 10, 2008
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Function, SQL Scripts, SQL Server

ABS can overflow even when the negative input fits its signed integer type. I widen the input before asking for its magnitude. Casting the output afterward would be too late to protect the calculation.

Read More
SQL SERVER - Fix : Error : 1326 Cannot connect to Database Server Error: 40 - Could not open a connection to SQL Server

SQL SERVER – Fix : Error : 1326 Cannot connect to Database Server Error: 40 – Could not open a connection to SQL Server

August 9, 2008
Pinal Dave
SQL Tips and Tricks
Database, SQL Error Messages, SQL Server Security

If you are receiving the following error related to connection to SQL Server, this blog is for you. 

Read More
Previous 1 … 746 747 748 749 750 751 752 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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