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
MySQL - How to Drop Table If Exists in Database?

MySQL – How to Drop Table If Exists in Database?

March 28, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Table Operation

SQL Server 2016 added DROP IF EXISTS, but MySQL has had it for years. Here is how to drop table if exists in a MySQL database.

Read More
SQL Server query window.

SQL SERVER – Practical Tips to Reduce SQL Server Database Table Size – Experts Opinion

November 30, 2015
Pinal Dave
SQL Tips and Tricks
Devart, SQL Table Operation

Practical tips to reduce SQL Server database table size, from my friend and SQL Server expert Sergey, for faster queries and smaller storage.

Read More
SQL SERVER - Finding Tables Created Last Week - DBA Tip Part II

SQL SERVER – Finding Tables Created Last Week – DBA Tip Part II

January 12, 2015
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Table Operation

Part II of finding tables created last week. Readers asked for an easier way, so here is how to do it from the SSMS user interface without writing a script.

Read More
SQL SERVER - UPDATE FROM SELECT Statement with Condition

SQL SERVER – UPDATE FROM SELECT Statement with Condition

September 30, 2014
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Table Operation

An old college friend asked how to UPDATE one table from another with a condition. Here is his sample and the UPDATE FROM SELECT statement that solves it.

Read More
A chair caster replacement keeps sound wheels while replacing a worn wheel

Syncing a Lookup Table Without MERGE: Insert, Update, Delete

May 20, 2014
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Table Operation, SQL Transactions

Three plain statements can do the job of MERGE, and each one gives you its own row count. Here is how to build it, test it and trust it.

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
SQL SERVER - How to Access the Previous Row and Next Row value in SELECT statement? - Part 4

SQL SERVER – How to Access the Previous Row and Next Row value in SELECT statement? – Part 4

September 25, 2013
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL Table Operation

Part 4 on reading the previous row and next row value in a SELECT statement. My friend Szymon Wojcik shows how a numbers table can make the query even faster.

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

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