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
Gouache painting of a snail crossing a wooden gate with a vermilion wizard hat on the gatepost

Restore Database Wizard Slow to Open in SSMS

May 7, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server Management Studio

The Restore Database Wizard reads the backup history stored in msdb before it opens. When that history has grown for years, the wizard is slow. This post counts the history, deletes it in monthly steps with sp_delete_backuphistory, shows how to clean one database’s history, and sets up a regular cleanup so the wizard stays fast.

Read More
A distinctive token fits a literal slot among ordinary tokens

How to Search Special Characters in Table Column? – Interview Question of the Week #172

May 6, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server

Can you find [blog.] in a column with LIKE? Most people I interview cannot. Here is how to search Special Characters in a table column the right way.

Read More
SQL Server Performance Tool Window.

SQL Server – Performance Comparison of Function Trim and LTRIM(RTRIM)

May 5, 2018
Pinal Dave
SQL Performance
SQL Function, SQL Scripts, SQL Server

A workshop question: what is the performance comparison of function TRIM and LTRIM(RTRIM) in SQL Server? Here are the test results.

Read More
Three braided bundles sit beside their separate groups of woven strips.

SQL SERVER – Split Comma Separated Value String in a Column Using STRING_SPLIT

May 4, 2018
Pinal Dave
SQL Tips and Tricks
CSV, SQL Function, SQL Scripts, SQL Server, SQL Server 2016

To Split Comma Separated Value String inputs, I use STRING_SPLIT with CROSS APPLY. The example associates each class with its student.

Read More
Sql query editor displaying variable.

SQL SERVER – Fix Error: Invalid object name STRING_SPLIT

May 3, 2018
Pinal Dave
SQL Tips and Tricks
Compatibility Level, SQL Error Messages, SQL Function, SQL Scripts, SQL Server, SQL String

A reader on SQL Server 2016 got Invalid object name STRING_SPLIT when trying the new function. Here is why the error shows up and how to fix it.

Read More
Seven cloth bundles of silverware on a sideboard, one opened and freshly polished beside a red tin.

Splitting DBCC CHECKDB Across the Week for a Large Database

May 2, 2018
Pinal Dave
SQL Tips and Tricks
Database Corruption, DBA, SQL Server, SQL Server DBCC

Keep a large database under regular integrity checks by splitting DBCC CHECKDB work across seven nights and auditing coverage.

Read More
SQL Server Agent Properties.

SQL SERVER – How to Get SQL Server Agent Properties?

May 1, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Agent, SQL Server Management Studio

During a health check someone asked if SQL Server Agent has settings to tune. It does. Here is how to get SQL Server Agent properties with a simple script.

Read More
Previous 1 … 217 218 219 220 221 222 223 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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