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 - Column Alias and Usage in Where Clause

SQL SERVER – Column Alias and Usage in Where Clause

September 8, 2015
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

You can ORDER BY a column alias, so why not use it in WHERE? A simple example that shows how SQL Server assigns a Column Alias and where it is in scope.

Read More
SQL SERVER - How to Enable or Disable All the Triggers on a Table and Database?

SQL SERVER – How to Enable or Disable All the Triggers on a Table and Database?

September 5, 2015
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Trigger

One line commands to enable or disable all the triggers on a table, a database or the whole server using ENABLE TRIGGER ALL and DISABLE TRIGGER ALL.

Read More
SQL SERVER – SPID is KILLED/ROLLBACK state. What to Do Next?

SQL SERVER – SPID is KILLED/ROLLBACK state. What to Do Next?

August 31, 2015
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security

Your SPID shows KILLED/ROLLBACK and never seems to finish. Here is what that state means, why SQL Server sometimes cannot undo the work and what to do next.

Read More
SQL SERVER - Script: Finding queries without JOIN Predicates

SQL SERVER – Script: Finding queries without JOIN Predicates

August 26, 2015
Pinal Dave
SQL Performance
SQL Scripts

During a code review I spotted a query missing its join condition. Here is a script for finding queries without JOIN predicates in SQL Server.

Read More
SQL SERVER - Database Mirroring login attempt failed - Connection handshake failed

SQL SERVER – Database Mirroring login attempt failed – Connection handshake failed

August 25, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Mirroring, SQL Scripts, SQL Server

While building an AlwaysOn demo I hit the Database Mirroring login attempt failed error with a connection handshake failure. Here is how I fixed it.

Read More
A turnstile in a dim marble lobby with a chain looped through its arms, one red bulb burning above it.

SQL SERVER – Login failed for user . Reason: Token-based server access validation failed

August 19, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Login, SQL Scripts, SQL Server

Login failed for user. Reason: Token-based server access validation failed. Here is how the state of error 18456 in the ERRORLOG shows the cause and fix.

Read More
SQL SERVER - How to Migrate Existing Database to Contained Databases

SQL SERVER – How to Migrate Existing Database to Contained Databases

August 18, 2015
Pinal Dave
SQL Tips and Tricks
SQL Scripts

How do you convert an existing database to contained databases? I walk through the planning and use the DMV and XEvent that flag containment breaches.

Read More
Previous 1 … 161 162 163 164 165 166 167 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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