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 Management Studio Query Results Window.

SQL SERVER – Get Last Running Query Based on SPID

July 19, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server DBCC, SQL System Table

How to see the last running query of another session based on its SPID, using @@SPID to find session IDs and DBCC INPUTBUFFER to read the query.

Read More
A village water trough with several spouts, one fitted with a brass restrictor that narrows its stream.

Resource Governor: Capping a Runaway Report

July 18, 2009
Pinal Dave
SQL Performance
DBA, Resource Governor, SQL CPU, SQL Performance, SQL Reports

Capping a runaway report with Resource Governor uses workload groups, pools, and a tested classifier to limit one workload safely.

Read More
SQL SERVER - Two Methods to Retrieve List of Primary Keys and Foreign Keys of Database

SQL SERVER – Two Methods to Retrieve List of Primary Keys and Foreign Keys of Database

July 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server

There are two different methods to retrieve the list of Primary Keys and Foreign Keys from the database.

Read More
Database Recovery Model Window.

SQL SERVER – Four Different Ways to Find Recovery Model for Database

July 16, 2009
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts

Four ways to find the recovery model of a database: database properties, Object Explorer Details, sys.databases and DATABASEPROPERTYEX.

Read More
SQL Server backup overview diagram.

SQL SERVER – Restore Sequence and Understanding NORECOVERY and RECOVERY

July 15, 2009
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts, SQL Server

What is the difference between NORECOVERY and RECOVERY when restoring a database, and what is the right restore sequence? A plain explanation of both.

Read More
SQL SERVER - Backup Timeline and Understanding of Database Restore Process in Full Recovery Model

SQL SERVER – Backup Timeline and Understanding of Database Restore Process in Full Recovery Model

July 14, 2009
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Server

A backup timeline for the full recovery model: full, differential and log backups, and how to restore them in the right order. Plus a real DBA story.

Read More
SQL SERVER - BLOB - Pointer to Image, Image in Database, FILESTREAM Storage

SQL SERVER – BLOB – Pointer to Image, Image in Database, FILESTREAM Storage

July 13, 2009
Pinal Dave
SQL Tips and Tricks
SQL Data Storage

Store images as a file pointer, inside the database, or with FILESTREAM storage in SQL Server 2008? I compare the pros and cons of each method.

Read More
Previous 1 … 691 692 693 694 695 696 697 … 841 Next
  • Books
  • Testimonials
  • Privacy Policy

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