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 Authority News - Download SQL Server Data Type Conversion Chart

SQL Authority News – Download SQL Server Data Type Conversion Chart

December 9, 2012
Pinal Dave
SQL Tips and Tricks
SQL Download

Implicit or explicit? Download the SQL Server data type conversion chart to see which conversions happen on their own and which need CAST or CONVERT.

Read More
A row of wooden toy animals with the repeats set aside in a basket below.

Removing Repeated Characters From a String With GENERATE_SERIES

December 8, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022, SQL String

Remove repeated characters with GENERATE_SERIES, ROW_NUMBER, and ordered STRING_AGG, then benchmark a SQL Server 2019 fallback.

Read More
Gouache painting: a round wooden storehouse lined with a ring of grain bins, every bin empty and swept ready to refill except one whose small door is held shut by a vermilion latch

log_reuse_wait_desc: Why the Transaction Log Will Not Shrink

December 7, 2012
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server DBCC, SQL Transactions, Transaction Log

log_reuse_wait_desc tells you why SQL Server cannot reuse its transaction log, so you know why a shrink gives nothing back. This post causes LOG_BACKUP and ACTIVE_TRANSACTION on purpose in a test database on SQL Server 2025, measures the log and fixes each one.

Read More
A wall key rack with five keys, two empty hooks and one hook tied with a red ribbon

A Calendar Table With Holidays for Date Math

December 6, 2012
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts, SQL Server

Build a calendar table with weekdays, fiscal months, and American holiday flags, then count working days and find useful date boundaries.

Read More
Gouache painting of three colored ribbons feeding through a brass guide and joining into one braided cord.

Concat Strings in SQL Server: SQL in Sixty Seconds #035

December 5, 2012
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL NULL, SQL Scripts, SQL String

To concat strings in SQL Server, use the + operator or the CONCAT function. The tests here show what each one does with NULL, numbers and dates, how the 8000 character limit cuts a result, and when CONCAT_WS or STRING_AGG is the better tool.

Read More
SQL query error.

SQL SERVER – Fix: Error : 402 The data types ntext and varchar are incompatible in the equal to operator

December 4, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Error 402 says ntext and varchar are incompatible in the equal to operator. I recreate it with a small table and walk through the possible solutions.

Read More
SQL SERVER - Fix Error: Microsoft OLE DB Provider for SQL Server error '80040e07' or Microsoft SQL Native Client error '80040e07'

SQL SERVER – Fix Error: Microsoft OLE DB Provider for SQL Server error ‘80040e07’ or Microsoft SQL Native Client error ‘80040e07’

December 3, 2012
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Error Messages

Error 80040e07, syntax error converting datetime from character string, usually means a bad date value. In one case a reader had simply misspelled September.

Read More
Previous 1 … 508 509 510 511 512 513 514 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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