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 identical dollhouses side by side, each with lights on in different rooms.

Intelligent Query Processing: Checking What Is On per Database

September 25, 2018
Pinal Dave
SQL Performance
Compatibility Level, SQL Performance, SQL Server, SQL Server 2019

Check intelligent query processing by database compatibility level, scoped switches, and actual plan evidence before comparing servers.

Read More
A small sample dish holds selected tiles beside a larger populated source tray.

SQL SERVER – Selecting Random n Rows from a Table

September 24, 2018
Pinal Dave
SQL Tips and Tricks
SQL Random, SQL Scripts, SQL Server

To select random-looking n Rows, I can sort by NEWID and use TOP. A developer wanted ten AdventureWorks Product rows.

Read More
Two matching brass clips hold a ribbon safely inside a wooden frame

How to Escape a Single Quote in SQL Server? – Interview Question of the Week #192

September 23, 2018
Pinal Dave
SQL Interview Questions and Answers
Quotes, SQL Scripts, SQL Server

How do you escape a single quote in SQL Server? A college student asked me at a Bangalore user group, a few people laughed, and here is the simple answer.

Read More
Two pies cooling on a board, one with a solid crust and one with a lattice showing the filling

Inline Table-Valued Functions: Parameterized Views That Stay Fast

September 22, 2018
Pinal Dave
SQL Performance
Execution Plan, SQL Function, SQL Performance, SQL Server, SQL View

Compare inline table-valued functions with scalar functions, preserve customer results, and inspect plans before claiming performance gains.

Read More
Selected cabinet fittings and blank patterns are reviewed for a differently shaped destination.

SQL SERVER – Restoring SQL Server 2017 to SQL Server 2005 Using Generate Scripts

September 21, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server, SQL Server Management Studio

I used generate scripts for a historical SQL Server 2017-to-2005 migration. It was a logical migration rather than a backward backup restore.

Read More
Gouache illustration of the first and last day of the current date's month, using the first and last sheets between two bookends.

SQL SERVER – Simple Method to Find FIRST and LAST Day of Current Date

September 20, 2018
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

I calculate the FIRST and LAST Day of Current Date using explicit date boundaries. The historical sample starts on October 28, 2017.

Read More
Seven source tiles remain intact beside four distinct reliefs on a separate display board.

SQL SERVER – Remove Duplicate Rows Using UNION Operator

September 19, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Union clause

The UNION operator removes duplicates from a query result without deleting source rows. I use a small example to show that distinction.

Read More
Previous 1 … 107 108 109 110 111 112 113 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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