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 two small trains on parallel tracks with one uncoupled red wagon waiting between them

Attach a Database in SQL Server and Detach It Safely

June 11, 2014
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Deprecated Feature, SQL Scripts

To attach a database, use CREATE DATABASE with FOR ATTACH and point it at the data and log files. This post detaches a demo database, attaches it again, shows the error that stops a detach, and compares the old sp_attach_db procedure with the current statement.

Read More
A hand holding an egg over a small lamp in a dim pantry, the shell glowing, a basket of eggs beside it.

BACKUP WITH CHECKSUM: What It Checks and What It Cannot

June 10, 2014
Pinal Dave
SQL Tips and Tricks
Database Corruption, DBA, SQL Backup and Restore, SQL Server DBCC

Use WITH CHECKSUM for backups, inspect checksum history, verify backup media, and understand why restored CHECKDB tests are still needed.

Read More
A hand lowering a record player's needle just before a scratch on a spinning record with a red center

Point-in-Time Restore: Getting Back Rows Deleted by Accident

June 9, 2014
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Delete, Transaction Log

Plan a point-in-time restore after an accidental DELETE, preserve the log chain, recover a separate copy, and return reviewed rows.

Read More
Padded sleeve board supporting a jacket sleeve beside an unsupported sleeve

Column Aliases: Where You Can Use Them and Where You Cannot

June 8, 2014
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Column, SQL Order By

Why does WHERE say the alias does not exist? Here is the order SQL Server follows, two clean fixes and one quiet trap to avoid.

Read More
MySQL - Introduction to CONCAT and CONCAT_WS functions

MySQL – Introduction to CONCAT and CONCAT_WS functions

June 7, 2014
Pinal Dave
SQL Tips and Tricks
MySQL

MySQL has two concatenation functions, CONCAT and CONCAT_WS. I show how each one works and why CONCAT_WS makes adding a separator easier.

Read More
SQL SERVER - What are Actions in SSAS and How to Make a Reporting Action

SQL SERVER – What are Actions in SSAS and How to Make a Reporting Action

June 6, 2014
Pinal Dave
SQL Tips and Tricks
SQL Analysis Services

SSAS actions let users open a report, a web page or drill through from cube data. Here is what actions are and how to build a Reporting Action step by step.

Read More
SQL SERVER - Planned and Unplanned Availablity Group Failovers - Notes from the Field #031

SQL SERVER – Planned and Unplanned Availability Group Failovers – Notes from the Field #031

June 5, 2014
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL High Availability, SQL Scripts, SQL Server

In Notes from the Field #031, John Sterrett explains Planned and Unplanned Availability Group failovers in AlwaysOn, a topic that confuses many DBAs.

Read More
Previous 1 … 276 277 278 279 280 281 282 … 572 Next
  • Books
  • Testimonials
  • Privacy Policy

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