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 query window.

SQL SERVER – Solution to Puzzle – REPLICATE over 8000 Characters

May 17, 2013
Pinal Dave
SQL Puzzle
SQL Function

Here is the answer to my puzzle on REPLICATE over 8000 characters, with a quick recap of the script and why the lengths come out the way they do.

Read More
SQL SERVER - How to use xp_sscanf in Real World Scenario?

SQL SERVER – How to use xp_sscanf in Real World Scenario?

May 14, 2013
Pinal Dave
SQL Puzzle
SQL Scripts

I came across the extended stored procedure xp_sscanf and could not find a real world use for it. Here is how it works. Can you tell me where to use it?

Read More
SQL Server query result window.

SQL SERVER – Puzzle and Answer – REPLICATE over 8000 Characters

May 13, 2013
Pinal Dave
SQL Puzzle
SQL Function

A quick Monday puzzle: what happens when you REPLICATE over 8000 characters into a VARCHAR(MAX) variable? Guess the lengths before you run it.

Read More
SQL SERVER - Recover the Accidentally Renamed Table

SQL SERVER – Recover the Accidentally Renamed Table

October 8, 2012
Pinal Dave
SQL Puzzle

There is no undo for an accidentally renamed table in SSMS, sadly. Here are a few things you can check to find clues about what the original name was.

Read More
Integers to character conversion.

SQL SERVER – Solution – 2 T-SQL Puzzles – Display Star and Shortest Code to Display 1

October 2, 2012
Pinal Dave
SQL Puzzle
NuoDB

A recap of my two T-SQL puzzles, the star from CAST(634 AS VARCHAR(2)) and the shortest code to display 1, after 350+ replies from readers.

Read More
SQL SERVER - Monday Morning Puzzle - Query Returns Results Sometimes but Not Always

SQL SERVER – Monday Morning Puzzle – Query Returns Results Sometimes but Not Always

July 9, 2012
Pinal Dave
SQL Puzzle

A beginner asked why a query returns results sometimes but not always. I share where I would start looking and invite you to add your own answer.

Read More
CREATE TABLE in SQL Server.

SQL SERVER – Identifying Column Data Type of uniqueidentifier without Querying System Tables

June 18, 2012
Pinal Dave
SQL Puzzle
SQL Server Management Studio

Madhivanan asked how to tell if a table has a uniqueidentifier column without querying system tables or DMVs, knowing only the table name.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 22 Next
  • Books
  • Testimonials
  • Privacy Policy

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