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 - Identify Oldest Active Transaction with DBCC OPENTRAN

SQL SERVER – Identify Oldest Active Transaction with DBCC OPENTRAN

January 19, 2014
Pinal Dave
SQL Tips and Tricks
SQL Transactions

How do you know if there is an open transaction before you restart a server? DBCC OPENTRAN shows the oldest active transaction in your database.

Read More
A hand lowers one peg toward an accessible hole in a triangular solitaire board

Nested Loops Join: When It Is the Right Choice

January 18, 2014
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Index, SQL Joins

Loops in a plan are not always the villain. Count the inner executions and the reads before you force another join type.

Read More
SQL Server Authentication mode.

SQL SERVER – Fix – Login failed for user ‘username’. The user is not associated with a trusted SQL Server connection. (Microsoft SQL Server, Error: 18452)

January 17, 2014
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Login failed, the user is not associated with a trusted SQL Server connection, Error 18452? Usually it is a wrong username or Windows-only login mode.

Read More
Dbi_dboccLastKnownGood.

SQL SERVER – Check for Database Integrity – Notes from the Field #011

January 16, 2014
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Backup and Restore

In this Notes from the Field episode, Tim explains why you should check database integrity often, so corruption is caught before it is too late.

Read More
A power strip under a table with cables to a lamp, a radio and a kettle, one cord vanishing through the floor.

Finding What Depends on a Table

January 15, 2014
Pinal Dave
SQL Tips and Tricks
SQL Dependency, SQL Server, SQL Stored Procedure, SQL System Table

Finding What depends on a table starts with sys.dm_sql_referencing_entities, then checks cross-database code and dynamic SQL.

Read More
Gouache painting of a tidy archive room with rows of plain wooden drawers, a brass key ring hanging on a hook and a magnifying glass resting on an open ledger with blank pages, one drawer handle painted vermilion.

Data Governance: Catalog, Lineage and Data Quality

January 14, 2014
Pinal Dave
SQL Tips and Tricks
Data Observability, Database, Duplicate Records, SQL NULL, SQL Server Security

Data Governance is how you know what data you have, where it came from, who can see it and whether it is right. This post covers the catalog, lineage, access and data quality, with T-SQL checks you can run.

Read More
A cake lifter removes one cake layer while neighboring layers remain untouched

TRUNCATE Permission: Letting a User Empty One Table

January 13, 2014
Pinal Dave
SQL Tips and Tricks
SQL Server Security, SQL Stored Procedure, SQL Table Operation

Your loader needs to empty a staging table, not redesign it. Here is a small procedure that gives it exactly that.

Read More
Previous 1 … 448 449 450 451 452 453 454 … 845 Next
  • Books
  • Testimonials
  • Privacy Policy

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