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 - Why my Database is in Restoring Mode After Taking Backup?

SQL SERVER – Why my Database is in Restoring Mode After Taking Backup?

November 1, 2014
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts

Pepper, a SharePoint consultant, asked why her database is in restoring mode after taking a backup. Here is the story and the answer.

Read More
Gouache painting: a wooden seesaw balanced on a log at the edge of a meadow, one end resting low and the other raised, with a small vermilion flag on the raised end

SQL SERVER – How to Flip Value of Bit Field in SQL Server? – Part 2

October 26, 2014
Pinal Dave
SQL Tips and Tricks
SQL Operator, SQL Scripts, SQL Server

Five expressions flip a bit value in SQL Server without a CASE statement. This post runs Vinod Kumar’s four methods and the readers’ answers on SQL Server 2025, shows what each one returns for 0, 1 and NULL, and explains how to flip value of bit field data stored in an integer column.

Read More
SQL SERVER - How to Flip Value of Bit Field in SQL Server?

SQL SERVER – How to Flip Value of Bit Field in SQL Server?

October 25, 2014
Pinal Dave
SQL Tips and Tricks
SQL Scripts

How do you flip bit field values from 0 to 1 and back? My favorite method is the ~ operator. Here is a short script that shows it.

Read More
Gouache painting: a haystack inside a wooden barn with one small vermilion button hidden in the straw, a hanging lantern above it, warm light through the barn slats

Find Rows With Single Quotes in SQL Server: SQL in Sixty Seconds #075

October 22, 2014
Pinal Dave
SQL Video
Quotes, SQL in Sixty Seconds, SQL Scripts, SQL String

To find rows with single quotes, write the quote twice inside the search string. This post tests four search patterns on one million rows on SQL Server 2025, shows which two are the same query and which one costs more, and covers the curly quote that a straight quote search misses.

Read More
SQL SERVER - Search Records with Single Quotes - Part 2

SQL SERVER – Search Records with Single Quotes – Part 2

October 21, 2014
Pinal Dave
SQL Tips and Tricks
SQL Scripts

Readers sent more ways to find records with single quotes: CHAR(39), CHARINDEX and REPLACE. Here are their suggestions, and all of them perform well.

Read More
SQL SERVER - Search Records with Single Quotes

SQL SERVER – Search Records with Single Quotes

October 20, 2014
Pinal Dave
SQL Tips and Tricks
SQL Scripts

A reader asked how to search records with single quotes in a table column. A simple LIKE query with doubled quotes finds them.

Read More
SQL SERVER - Beginning Reading Transaction Log File

SQL SERVER – Beginning Reading Transaction Log File

October 15, 2014
Pinal Dave
SQL Tips and Tricks
Devart, SQL Scripts, SQL Server, Transaction Log

What is the SQL Server transaction log, why do we need it and how does it work? A beginner’s first step toward reading transaction log file content.

Read More
Previous 1 … 172 173 174 175 176 177 178 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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