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
Decimal, space, etc. table.

SQL SERVER – How to Remove All Characters From a String Using T-SQL?

August 1, 2015
Pinal Dave
SQL Tips and Tricks
SQL String

A reader wanted only the digits from a string like ab123ce234fe. Here is a simple T-SQL loop to remove all characters from a string and keep the numbers.

Read More
SQL SERVER - Puzzle - Inside Working of Datatype smalldatetime

SQL SERVER – Puzzle – Inside Working of Datatype smalldatetime

July 31, 2015
Pinal Dave
SQL Puzzle
SQL DateTime

A developer got odd results when casting strings sent from an app. This puzzle looks at how the smalldatetime datatype works inside SQL Server.

Read More
A bicycle chain and two gears laid on a workbench, freshly oiled, a rag folded beside them.

SQL SERVER – DevOps for the DBA – Notes from the Field #091

July 30, 2015
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Server

DevOps is a buzz word with real substance behind it. In Notes from the Field #091, Stuart Ainsworth explains what DevOps means for a DBA’s daily job.

Read More
SQL query window with table insertions and an error.

SQL SERVER – Error: Msg 245 – Conversion failed when converting the varchar value ‘Inactive’ to data type int

July 29, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Mixing text and numbers in a CASE statement can throw Msg 245: conversion failed when converting the varchar value to data type int. Here is why and the fix.

Read More
Casting sprue beside a finished fitting and an unused matching mold

Recovering Unsaved Query Windows After SSMS Closes Unexpectedly

July 28, 2015
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Server Management Studio, Windows

A restart ate your script, but maybe not all of it. Two places to look: SSMS recovery files and the text SQL Server remembers.

Read More
SQL SERVER - Inserting into Sparse Column Sets and Errors Associated With It

SQL SERVER – Inserting into Sparse Column Sets and Errors Associated With It

July 27, 2015
Pinal Dave
SQL Tips and Tricks
SPARSE Columns, SQL Scripts

You can write to sparse column sets directly, not just read them. I show how to insert into column sets and the errors you hit without an explicit column list.

Read More
A narrow net catches one fish while a broad net catches several fish

Interview Question of the Week #029 – Difference Between CHARINDEX vs PATINDEX

July 26, 2015
Pinal Dave
SQL Interview Questions and Answers

Compare CHARINDEX vs PATINDEX, test literal and wildcard searches, preserve positions, and use SQL Server 2025 REGEXP_INSTR when needed.

Read More
Previous 1 … 368 369 370 371 372 373 374 … 849 Next
  • Books
  • Testimonials
  • Privacy Policy

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