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 small boat leaves a visible wake beyond its old mooring

How to Write in Text File from T-SQL in SQL Server? – Interview Question of the Week #236

August 4, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Server Configuration, SQL Stored Procedure, SQL String

Question: How to Write in Text File from T-SQL in SQL Server?
The question above was actually asked in an interview and also was not asked in the same word.

Read More
An opened pea pod lies beside its unwrapped peas

How to Remove Quotes of QUOTENAME? – Interview Question of the Week #235

July 28, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server, SQL String

Question: How to Remove Quotes of QUOTENAME? I received based on my yesterday’s blog post SQL SERVER – QUOTENAME Function and Custom Quote Character.

Read More
Gouache painting of wooden frames in different shapes each holding a pebble, with the diamond frame in vermilion

QUOTENAME Function: Custom Quote Characters and Dynamic SQL

July 27, 2019
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Function, SQL Scripts, SQL String

The QUOTENAME function turns a name into a safe identifier and doubles any closing delimiter inside it. Tested queries show which quote characters work, the 128 character limit and a dynamic SQL example. A short card lists the rules.

Read More
A hand holding two nearly identical slate blue thread spools against a window, beside a rack of spools sorted by shade.

Binary Collations: Byte-Order Sorting and Exact String Matches

May 2, 2019
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL Index, SQL Server, SQL String

Learn how a binary collation changes SQL Server sorting, exact string comparisons, index access, and column metadata checks.

Read More
A red horseshoe magnet lifting screws and nails out of a pile of sawdust on a workbench

Pulling Values Out of Text With REGEXP_SUBSTR and REGEXP_INSTR

April 22, 2019
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

Extract codes with REGEXP_SUBSTR in SQL Server 2025, locate matches, select occurrences and capture groups, and validate text boundaries.

Read More
Title card: String or Binary Data Would Be Truncated

SQL SERVER – Identify the column(s) responsible for “String or binary data would be truncated.”

April 8, 2019
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Error Messages, SQL Scripts, SQL Server, SQL Server 2019, SQL String

For years, String or binary data would be truncated never told us which column was too long. Now SQL Server does, and here is how to identify the column responsible.

Read More
A paper roll releases a limited length while the rest remains on the spool

How to Limit Output of Varchar(max), Nvarchar(max) in SELECT Statement? – Interview Question of the Week #218

March 31, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL String

How do you limit the output of Varchar(max) or Nvarchar(max) in a SELECT statement? A simple trick does it, and it works for varbinary(max), text and ntext too.

Read More
Previous 1 2 3 4 5 6 7 … 22 Next
  • Books
  • Testimonials
  • Privacy Policy

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