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 - 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
SQL SERVER - Database Stuck in Restoring State

SQL SERVER – Database Stuck in Restoring State

October 24, 2014
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore

Is your database stuck in restoring state after you restored all backups? RESTORE DATABASE WITH RECOVERY brings it online. I show what to run and when.

Read More
Gouache painting of a carved red block beside a strip of cloth printed with a row of identical leaves

Why Use Biml to Build SSIS Packages Faster

October 23, 2014
Pinal Dave
SQL Tips and Tricks
BIML, ETL, Notes from the Field, SSIS

Why use Biml when SSIS already has a designer? This guest post by Reeves Smith shows how one XML file and a single variable can generate many near-identical SSIS packages, and when the extra effort pays off.

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
Multiple .sql files.

SQL SERVER – Combined Multiple .SQL files into One Single File

October 19, 2014
Pinal Dave
SQL Tips and Tricks
Batch

A friend reading on his phone wanted one file instead of 100s of scripts. I combined multiple .SQL files into one single file from the command prompt.

Read More
Extract domain from email.

EXCEL / SQL SERVER – Extract the Domain from an Email Address

October 18, 2014
Pinal Dave
SQL Tips and Tricks

I took the long route to extract the domain from an email address in Excel by going through SQL Server. This is the simple Excel formula I should have used.

Read More
Previous 1 … 260 261 262 263 264 265 266 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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