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
Gouache painting of three potted seedlings on a greenhouse shelf, the middle one in a deep vermilion pot and slightly taller, with a wooden ruler leaning at the front

Simple Interest in SQL Server: A Function That Keeps Cents

April 30, 2021
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

Simple interest in SQL Server is principal times rate times years divided by 100, and a T-SQL function returns it in one line. This post shows how an int return type drops the cents and what SCHEMABINDING changes. It measures the cost of a scalar function on 500,000 rows and ends with compound interest.

Read More
Gouache illustration of the difference between Count and COUNT_BIG, with small and large token containers beside separate assembly fittings.

SQL SERVER – Difference Between Count and Count_Big

April 29, 2021
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Scripts, SQL Server

The difference between Count and COUNT_BIG includes result range and indexed-view requirements. Their row-counting rules are the same.

Read More
A figure sweeping a metal detector across a long beach, a small vermilion flag marking one spot.

Searching the Error Log by Date and Text With xp_readerrorlog

April 27, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Error Messages, SQL Log, SQL Scripts

Search the SQL Server error log by date and text, select archives, capture matching rows, and cycle logs without losing context.

Read More
bitwise puzzle

Bitwise Puzzle – SQL in Sixty Seconds 160

April 26, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Scripts, SQL Server

Many did not believe in the real world and based on the request, I have made the recent video on the same topic of the bitwise puzzle. 

Read More
Gouache painting of a pale wooden bench in a bare room with a single vermilion peg set in the top

Change Join Type for a Query: HASH, LOOP and MERGE Hints

April 22, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, Query Hint, SQL Joins, SQL Scripts

To change join type for a query, add one of three hints to its OPTION clause. This post runs one join with each hint on two filters and compares the join type and the logical reads. It shows that no join type is best in general, and what a join hint in the FROM clause does to the join order.

Read More
Unmatched guide channels are inspected beside an empty receiving recess.

SQL Puzzle – Unsolved CASE Expression

April 20, 2021
Pinal Dave
SQL Puzzle
SQL CASE, SQL Scripts, SQL Server

This Unsolved CASE puzzle asks you to predict its result before execution. The preceding bitwise challenge drew more than 125 responses.

Read More
A temporary key awaits a first-use exchange beside a closed cabinet and fitting tools.

SQL SERVER – Change Password at the First Login

April 19, 2021
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

MUST_CHANGE requires a SQL-authenticated login to change password at its first connection. Policy options and the client workflow must support it.

Read More
Previous 1 … 14 15 16 17 18 19 20 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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