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
A fridge door standing open at night, its light spilling across an empty kitchen

SET XACT_ABORT ON: Stopping Timeouts From Leaving Open Transactions

April 7, 2014
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Lock, SQL Server, SQL Transactions

Use SET XACT_ABORT ON to prevent client timeouts from leaving transactions and locks open, with TRY CATCH and a sleeping-session query.

Read More
SQL SERVER - Fix - Error 1759 Computed column in table is not allowed to be used in another computed-column definition

SQL SERVER – Fix – Error 1759 Computed column in table is not allowed to be used in another computed-column definition

April 6, 2014
Pinal Dave
SQL Tips and Tricks
SQL Error Messages

Error 1759 appears when a computed column is used in another computed-column definition. Here is a simple repro of the error and how to avoid it.

Read More
SQL SERVER - Unable to ALTER Computed Column in SQL Server - How to ALTER Computed Column

SQL SERVER – Unable to ALTER Computed Column in SQL Server – How to ALTER Computed Column

April 5, 2014
Pinal Dave
SQL Tips and Tricks

Want to ALTER computed column logic in SQL Server? You cannot, it throws Msg 156. Here is how to drop and recreate the computed column instead.

Read More
Three different protective cases hold a complete arrangement, additional pieces and a sequence of linked fittings.

SQL SERVER – Last Full Differential and Log Backup Finish Times

April 4, 2014
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Scripts, SQL Server

I check backup time separately for full, differential and log backups. One latest timestamp cannot describe the entire recovery chain.

Read More
SQL SERVER - Say No to DB Data Roles - SQL Security - Notes from the Field #022

SQL SERVER – Say No to DB Data Roles – SQL Security – Notes from the Field #022

April 3, 2014
Pinal Dave
SQL Tips and Tricks
Notes from the Field, SQL Scripts, SQL Server, SQL Server Security

Brian Kelley explains why he avoids the fixed DB data roles db_datareader and db_datawriter, and how they can compromise your server security.

Read More
A wooden xylophone with bars stepping from long to short, a red mallet resting between two neighbouring bars.

LAG and LEAD: Comparing Each Row With the One Before It

April 2, 2014
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL Function, SQL Order By, SQL Server

Use LAG and LEAD for monthly comparisons, handle defaults and percent change, choose explicit frames, and detect status transitions.

Read More
MySQL - List User Defined Tables - Two Methods

MySQL – List User Defined Tables – Two Methods

April 1, 2014
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Scripts, SQL Server, SQL System Table

There are different methods to list out user defined tables in MySQL. We will see two methods in this post.

Let us create the following tables in the database named Test

Read More
Previous 1 … 437 438 439 440 441 442 443 … 845 Next
  • Books
  • Testimonials
  • Privacy Policy

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