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 small locomotive pulling a single red wagon with nothing behind it on an empty track

How to Attach a Database Without Log File in SQL Server

August 26, 2016
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server, SQL Server Management Studio, Transaction Log

To attach a database without log file, run CREATE DATABASE with FOR ATTACH_REBUILD_LOG, or remove the missing log in the SSMS Attach dialog. This tutorial builds a demo database, detaches it, and rebuilds the log on attach. It also explains when the rebuild is impossible and what to check afterward.

Read More
SQL Management Studio error dialog box.

SQL SERVER – Fix Error – Cannot use the backup file because it was originally formatted with sector size 4096 and is now on a device with sector size 512

August 25, 2016
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Error Messages, SQL Scripts, SQL Server

SSMS backup failed with ‘Cannot use the backup file because it was originally formatted with sector size 4096’. Here is why it happens and the easy fix.

Read More
SQL server failure dialog.

SQL SERVER – Script level upgrade for database ‘master’ failed because upgrade step ‘upgrade_ucp_cmdw.sql’

August 24, 2016
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server

After a cluster failover, SQL Server would not start on Node2 because upgrade step ‘upgrade_ucp_cmdw.sql’ failed. Here is what the ERRORLOG showed.

Read More
A washing line at dawn with pegged shirts in a row and one shirt fallen on the wet grass below

Listing Last Night’s Failed Agent Jobs With One msdb Query

August 23, 2016
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server, SQL Server Agent

List failed Agent jobs and steps from msdb history, include retries and cancellations, and account for local times and trimmed records.

Read More
Gouache painting of a small sewing table with a few spools, one red, in front of a tall chest of drawers

Physical and Virtual Memory Explained for SQL Server DBAs

August 22, 2016
Pinal Dave
SQL Tips and Tricks
SQL Memory, SQL Server, SQL Server Architecture, Windows

Physical and virtual memory are two different things, and SQL Server reports on both. This post explains RAM, address space, the page file and paging in plain words. It then reads each number with three read-only queries and ends with settings worth checking.

Read More
A brass latch and its mounting plate removed while an independent steel rail stays on the cabinet

Does Dropping Primary Key Drop Non-Clustered Index on the Column? – Interview Question of the Week #085

August 21, 2016
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, SQL Constraint and Keys, SQL Index, SQL Server

Does dropping a primary key also drop the Non-Clustered Index on that column? An interview question with a small repro script to see the answer.

Read More
SQL SERVER - SSMS Error During Restore: No Backupset Selected to be Restored

SQL SERVER – SSMS Error During Restore: No Backupset Selected to be Restored

August 20, 2016
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Server Management Studio

Restoring a SQL Server 2008 backup in SSMS 2012 gave ‘No backupset selected to be restored’. A reader’s question and what causes this restore error.

Read More
Previous 1 … 199 200 201 202 203 204 205 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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