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
SQL SERVER - Check If String is a Palindrome in Using T-SQL Script - Reverse Function

SQL SERVER – Check If String is a Palindrome in Using T-SQL Script – Reverse Function

March 7, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

A friend building a captcha had to skip words that read the same backward. Here is a T-SQL script with REVERSE to check if a string is a Palindrome.

Read More
SQL SERVER - Beginning SQL 2012 - Basics of CONVERT FORMAT Function

SQL SERVER – Beginning SQL 2012 – Basics of CONVERT FORMAT Function

February 28, 2013
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Function, SQL Scripts, SQL Server

Basics of the CONVERT FORMAT Function in SQL 2012: compare FORMAT with the older CONVERT tricks and grab just the part of a date you need for reports.

Read More
Two rows of tulips, one all red and one in randomly mixed colors.

Generating Random Numbers Per Row: RAND, NEWID and CRYPT_GEN_RANDOM

February 2, 2013
Pinal Dave
SQL Tips and Tricks
Mathematical Function, SQL Function, SQL Random, SQL Server

Generate random numbers per row with NEWID or CRYPT_GEN_RANDOM, compare seeded RAND, inspect bucket spread, and pick a row without a sort.

Read More
A wall hatch in a kitchen pass with an entire loaded tray being sent through in one movement.

SQL SERVER – Significance of Table Input Parameter to Stored Procedure

January 31, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Stored Procedure

Pass a whole table into a stored procedure instead of forming and parsing XML. Here is why a table input parameter to stored procedure saves round trips.

Read More
A hand threading loose bagels from a tray onto one long red string at a bakery stall

JSON_ARRAYAGG and JSON_OBJECTAGG: Building JSON From Rows in SQL Server 2025

January 29, 2013
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL Server

Build customer arrays with JSON_ARRAYAGG and settings objects with JSON_OBJECTAGG in SQL Server 2025, with explicit order and null rules.

Read More
SQL SERVER - TRIM Function to Remove Leading and Trailing Spaces of String - SQL in Sixty Seconds #040 - Video

SQL SERVER – TRIM Function to Remove Leading and Trailing Spaces of String – SQL in Sixty Seconds #040 – Video

January 23, 2013
Pinal Dave
SQL Video
Database, SQL DateTime, SQL Function, SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Management Studio

SQL Server has no TRIM function, and calling it gives error Msg 195. This SQL in Sixty Seconds video shows how to remove leading and trailing spaces without it.

Read More
Two nearly identical brown leather gloves on a hall table, both for the left hand, a hand hovering above them.

Finding Duplicate Customers With T-SQL

January 6, 2013
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Function, SQL Server, SQL String

Find duplicate customers with T-SQL by normalizing names, reviewing fuzzy matches, and merging records only after ownership is settled.

Read More
Previous 1 … 28 29 30 31 32 33 34 … 61 Next
  • Books
  • Testimonials
  • Privacy Policy

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