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 data truncation warning.

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
How to Limit Output of.

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
Extract Alphanumeric Only From String.

How to Extract Alphanumeric Only From A String? – Interview Question of the Week #214

February 24, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Scripts, SQL Server, SQL String

A reader wanted only the values that mix letters and numbers from a column. Here is how to extract alphanumeric values from a string with simple pattern matching.

Read More
PostgreSQL SQL.

PostgreSQL – Storing Unicode Characters is Easy

February 16, 2019
Pinal Dave
SQL Tips and Tricks
PostgreSQL, SQL Function, SQL String, Unicode

SQL Server needs NVARCHAR or NCHAR for non-English text. In PostgreSQL, plain VARCHAR stores Unicode characters too, as my quick Russian example shows.

Read More
How to sort a varchar column.

How to Sort a Varchar Column Storing Integers with Order By? – Interview Question of the Week #206

December 30, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Order By, SQL Scripts, SQL Server, SQL String

How do you sort a Varchar column storing integers with Order By when you cannot change the datatype? Here are two simple solutions I shared with a developer.

Read More
12:00 digital clock.

How to Trim TIME Part in DATETIME Values? – Interview Question of the Week #200

November 18, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL DateTime, SQL Function, SQL Server, SQL String

How to trim TIME part in DATETIME values? A reader wanted to keep only the date and the hour, so here are ways to cut off the minutes and seconds.

Read More
A to Z alphabet smiley faces.

Alphabets – SQL SERVER – Retrieving Rows With All Alphabets From Alphanumeric Data

September 4, 2018
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL String

I got an email from one of my blog readers asking for an easy way to identify if a given string contains only alphabets. There can be methods.

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

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