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 detailed inspection bench holds a carefully organized tool tray beside a wooden assembly ready for checking.

SQL Server Health Check: Six Checks to Prioritize

May 5, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Backup and Restore, SQL Server, SQL Server Configuration, SQL TempDB

A SQL Server health check becomes useful when its findings lead to a clear, justified next step. I start with recovery and access risks before tuning preferences. A warning deserves investigation, but it does not automatically justify a server change.

Read More
A row of mugs on kitchen hooks, one mug per hook, except one hook holding two mugs together.

ROWS vs RANGE in Window Frames: Why Running Totals Differ

May 4, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Order By, SQL Scripts, SQL Server

Compare ROWS vs RANGE for running totals, handle tied sort values, write explicit frames, and check worktable reads on your server.

Read More
Gouache painting: in a sports room, two identical pegged racks hold the same four team bibs in cream, blue, sage and red

XML sql:column: Compare XML With a Relational Value

May 3, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

XML sql:column passes a typed relational value into XQuery. Keep node existence separate from a missing document and a scalar Boolean.

Read More
Two storks with red beaks rearranging sticks in a new nest on top of a village chimney

Migrating From MySQL to SQL Server: AUTO_INCREMENT, LIMIT and Other Differences

May 1, 2011
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Identity, SQL Migration, SQL Server

Plan migrating from MySQL with clear translations for identity values, paging, dates, booleans, string functions, and upserts.

Read More
A table top used as a template, traced in pencil onto a fresh sheet of plywood on trestles.

SQL SERVER – CTAS – Create Table As SELECT – What is CTAS?

April 30, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Table Operation

CTAS stands for Create Table As Select. In SQL Server you do it with SELECT INTO, which creates the new table and fills it with data in one step.

Read More
Dairy cows walking home along a farm lane at dusk, one cow lagging far behind at a bend.

Finding the Slowest Stored Procedures With sys.dm_exec_procedure_stats

April 26, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Server, SQL Stored Procedure

Find the slowest stored procedures with cache statistics, compare CPU and reads, and use two snapshots to isolate one busy hour.

Read More
Three distinct stamps match three clay impressions beside a separate blank fallback tile.

SQL SERVER – How to Use Decode in SQL Server?

April 23, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

CASE expresses the DECODE mapping in this SQL Server example. I keep the named matches and default value explicit.

Read More
Previous 1 … 316 317 318 319 320 321 322 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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