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
Unmarked wooden spokes radiate from a brass hub toward blue, terracotta and pale stones.

ATN2: Keep the Quadrant When Calculating an Angle

March 8, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

ATN2 uses two components to calculate an angle while retaining its quadrant. I keep the argument order and angle unit visible. Dividing one component by the other would lose useful information and introduce a zero-denominator case.

Read More
Illustrated cover: TRUNCATE Can Roll Back

SQL SERVER – Rollback TRUNCATE Command in Transaction

March 4, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, Transaction Log

Many believe TRUNCATE cannot be rolled back. It can. Here is a Rollback TRUNCATE command example inside a transaction, and why TRUNCATE is logged.

Read More
SQL SERVER - Performance Comparison - INSERT TOP (N) INTO Table - Using Top with INSERT

SQL SERVER – Performance Comparison – INSERT TOP (N) INTO Table – Using Top with INSERT

March 3, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

A Performance Comparison of INSERT TOP (N) INTO a table versus INSERT with SELECT TOP (N). The first is clearly faster, but the two can give very different results.

Read More
QUOTENAME object names illustrated by a wooden tray divided into two compartments, with slate-blue and sage blocks.

QUOTENAME Object Names: Quote Each SQL Server Name Part

February 26, 2010
Pinal Dave
SQL Tips and Tricks
Developer, SQL Function, SQL Server, SQL String

QUOTENAME object names separately to keep each part of a qualified SQL Server name intact. The function surrounds its entire input with identifier delimiters. A dot inside that input stays inside one quoted name. I keep the schema and object in separate variables.

Read More
SQL SERVER - Introduction to Rollup Clause

SQL SERVER – Introduction to Rollup Clause

February 24, 2010
Pinal Dave
SQL Tips and Tricks
Business Intelligence, SQL Scripts, SQL Server

An introduction to the Rollup Clause in SQL Server, which aggregates at several levels of a hierarchy. A population table by country, state and city shows how.

Read More
dataminig

Data Mining Algorithms (Analysis Services – Data Mining)

February 23, 2010
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, SQL Documentation, SQL Server

I quite often receive requests for the Data Mining Algorithms details. Book Online has wonderful resources for the same. I suggest to read them here.

Read More
Gouache painting: on a dyer's table, a slate-blue silk square partly overlaps a cream one, the shared corner showing a blended deeper tone while each square extends beyond it

geometry STOverlaps: Intersection Alone Is Not Enough

February 22, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STOverlaps asks a narrower question than whether two shapes share any points. I test equal and contained regions alongside a partial overlap. Those intersecting cases do not all satisfy the method’s overlap definition.

Read More
Previous 1 … 345 346 347 348 349 350 351 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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