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
Two separate library shelving units with a narrow aisle between them, one holding bound books and the other holding only card index drawers.

SQL SERVER – Clustered Index on Separate Drive From Table Location

June 18, 2009
Pinal Dave
SQL Performance
Best Practices, SQL Constraint and Keys, SQL Index, SQL Server

A Jr. developer asked if a clustered index can live on a separate Drive from its table. The answer is no, and the clustered vs non clustered difference shows why.

Read More
Two forks, one red, pressing into the last slice of pie at the same moment

Preventing Overbooking When Two Sessions Grab the Last Seat

June 9, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Lock, SQL Server, SQL Transactions, Transaction Isolation

Learn preventing overbooking through a last-seat race, an atomic update, update locks, and a database constraint that rejects oversold inventory.

Read More
SQL SERVER - Difference Between Candidate Keys and Primary Key

SQL SERVER – Difference Between Candidate Keys and Primary Key

May 30, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Function, SQL Scripts

What is the difference between a candidate key and a primary key? A table can have many candidate keys, but only one of them becomes the primary key.

Read More
SQL SERVER - How to Drop Primary Key Contraint

SQL SERVER – How to Drop Primary Key Constraint

May 12, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

ALTER TABLE … DROP PRIMARY KEY is MySQL syntax and fails in SQL Server with Msg 156. Here is how to drop primary key constraint the SQL Server way.

Read More
SQL SERVER - 2008 - Find Relationship of Foreign Key and Primary Key using T-SQL - Find Tables With Foreign Key Constraint in Database

SQL SERVER – 2008 – Find Relationship of Foreign Key and Primary Key using T-SQL – Find Tables With Foreign Key Constraint in Database

February 26, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

A T-SQL script that finds every table with a foreign key constraint and shows how each foreign key relates to its primary key, now with schema names.

Read More
Execution plan with cost.

SQL SERVER – My Observation – Effect of Clustered Index over Nonclustered Index

February 21, 2009
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Index, SQL Scripts

A simpler rewrite of my observation on the effect of clustered index over nonclustered index, with a sample script and execution plans to compare in SSMS.

Read More
SQL SERVER - Introduction to Force Index Query Hints - Index Hint - Part2

SQL SERVER – Introduction to Force Index Query Hints – Index Hint – Part2

February 8, 2009
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Index, SQL Scripts

Part 2 on force index query hints: instead of the inline WITH table hint, use the OPTION clause at the end of the query and name the table for each hint.

Read More
Previous 1 … 9 10 11 12 13 14 15 … 19 Next
  • Books
  • Testimonials
  • Privacy Policy

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