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
Unmarked wooden blocks in natural cream and slate tones stand in a row beside a red end block on textured off-white paper.

Decimal Multiplication: Precision Can Reduce the Result Scale

July 12, 2009
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

Decimal Multiplication derives a result type from its operand types, and the precision limit can reduce the scale. I inspect three small products. A small numeric value does not necessarily imply a narrowly declared arithmetic result.

Read More
SQL SERVER - Standby Servers and Types of Standby Servers

SQL SERVER – Standby Servers and Types of Standby Servers

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

What are standby servers and why do you need them? A plain look at the hot, warm and cold types and how SQL Server supports each one.

Read More
Detailed painting of a boatyard inspection board with one filled square recess, one empty recess, and a matching loose block on the workbench.

Columns With No Statistics: Read Each Warning

July 10, 2009
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Server, SQL Statistics

A columns-with-no-statistics warning needs a column-by-column investigation. Compare warning lists before and after targeted statistics creation, and check the actual query behavior before deciding that a missing statistic caused poor performance.

Read More
Previous 1 … 484 485 486 487 488 489 490 … 590 Next
  • Books
  • Testimonials
  • Privacy Policy

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