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 - Optimize Key Lookup by Creating Index with Include Columns

SQL SERVER – Optimize Key Lookup by Creating Index with Include Columns

November 17, 2018
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Index, SQL Operator, SQL Scripts, SQL Server

A query slowed to over 10 minutes because of a big key lookup. Here is how I optimize key lookup operations by creating an index with include columns.

Read More
Result column flipping between 1 and 0.

Puzzle – Datatime to DateTime2 Conversation in SQL Server 2017

November 16, 2018
Pinal Dave
SQL Puzzle
SQL DateTime, SQL Scripts, SQL Server, SQL Server 2017

At PASS, SQL Server expert Christopher Savage showed me a puzzle on DateTime to DateTime2 conversion in SQL Server 2017. I still have no answer, so can you solve it?

Read More
SQL Server Single Quote Escape Tool.

SQL SERVER – How to Escape a Single Quote in SQL Server?

November 10, 2018
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server

In my earlier post on “How to Escape a Single Quote in SQL Server? – Interview Question of the Week #192 I showed you a method of escaping a single quote.

Read More
A hand fitting a new red-capped spark plug into a lawn mower, the old blackened one on a rag

SQL SERVER – Script level upgrade for database ‘master’ failed because upgrade step msdb110_upgrade.sql encountered error 926, state 1, severity 25

November 6, 2018
Pinal Dave
SQL Tips and Tricks
Command Line, SQL Error Messages, SQL Scripts, SQL Server, SQL Upgrade

An upgrade failed: Script level upgrade for database ‘master’ failed because upgrade step msdb110_upgrade.sql encountered error 926. I explain the cause and the fix.

Read More
Stacks of blank index cards are weighed on a brass balance

How to Find Size of the Index for Tables? – Interview Question of the Week #198

November 4, 2018
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Index, SQL Scripts, SQL Server

How do you find the size of the index for tables? A client asked me during a Health Check, and this script lists schema, table, index and size in KB and MB.

Read More
Unable to start service SQLSERVERAGENT.

SQL SERVER – Unable to Start Service SQLSERVERAGENT on Server (mscorlib)

November 3, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Server Agent, Starting SQL

After moving the SQLAgent.OUT path, a client saw: Unable to start service SQLSERVERAGENT on server (mscorlib). Here is one cause of this error and the fix.

Read More
Gouache painting of an old stump with many growth rings beside a young sapling tied with a vermilion ribbon.

Build Your Own SQL Script Library

November 1, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Coding Standards, SQL Scripts

A SQL script library saves you from solving the same problem twice. This post shows a folder layout by task, a header block with the tested version, naming habits, a safe history, tests on a scratch server and a way to retire old scripts, with one small read-only script as an example.

Read More
Previous 1 … 86 87 88 89 90 91 92 … 365 Next
  • Books
  • Testimonials
  • Privacy Policy

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