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 - View Dependencies on SQL Server: Hard & Soft Way

SQL SERVER – View Dependencies on SQL Server: Hard & Soft Way

February 16, 2016
Pinal Dave
SQL Tips and Tricks
Devart, SQL Constraint and Keys, SQL Scripts, SQL Server, SQL Utility

Most databases I meet as a consultant have no up-to-date documentation. Here is the hard way and the soft way to check SQL SERVER – View Dependencies yourself.

Read More
Wooden coat toggle passing through one of two fabric loops

Circular Foreign Keys: Inserting Rows That Point at Each Other

January 20, 2016
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Constraint and Keys, SQL Server

Two tables point at each other, and every insert fails. Here is the nullable column that gives you a way in.

Read More
SQL SERVER - Finding Tables with Primary or Foreign Keys

SQL SERVER – Finding Tables with Primary or Foreign Keys

April 29, 2015
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

How do you find which tables have a primary key or foreign key? Here are simple queries for finding tables with primary or foreign keys in a database.

Read More
Two brass pegs align with two matching sockets in one joint

Interview Question of the Week #001 – Script to List Foreign Key Relationships and Constraint Name

January 4, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys

List foreign key relationships with schema names, matched columns, referential actions, and trust flags using SQL Server catalogs.

Read More
SQL SERVER - How to Disable and Enable All Constraint for Table and Database

SQL SERVER – How to Disable and Enable All Constraint for Table and Database

December 2, 2014
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys

Readers often ask how to disable and enable all constraint for table and database. Here are simple ALTER TABLE scripts for both, plus one for a single constraint.

Read More
Dovecote entrances with a fitted collar narrowing one opening

Block Predicates: Stopping Writes Into Another Tenant’s Rows

August 3, 2014
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Server Security, SQL Transactions

A filter predicate hides rows but does not stop a bad write. Here is how block predicates close that gap, with a demo you can run.

Read More
Hands digging through a huge bin of mixed balls for the red ones, an empty sorted rack standing unused

Foreign Keys Without Indexes: Finding and Fixing Slow Deletes

July 9, 2014
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Delete, SQL Index, SQL Performance

Find foreign keys without indexes, inspect parent-delete plans, and choose leading child-table keys that support relationship checks.

Read More
Previous 1 … 4 5 6 7 8 9 10 … 24 Next
  • Books
  • Testimonials
  • Privacy Policy

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