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 - LEAST and GREATEST Comparison Operators

MySQL – LEAST and GREATEST Comparison Operators

April 19, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Function, SQL Operator, SQL Scripts

Comparing values across many columns is a common chore. Here is how the MySQL LEAST and GREATEST comparison operators find the smallest and largest value.

Read More
A measuring bowl and matching smaller scoops illustrate whole and fractional portions

SELECT One by Two – Why Does SELECT 1/2 Returns 0 – Interview Question of the Week #067

April 17, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Scripts, SQL Server

Why does SELECT 1/2 return 0 in SQL Server and not 0.5? Beginners often think it is a bug. Here is the SELECT One by Two answer, explained simply.

Read More
SQL SERVER - Identifying Page Types

SQL SERVER – Identifying Page Types

April 16, 2016
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, TraceFlags

During a consulting session on SQL Server building blocks, a DBA asked me about pages. Here is how to identify Page Types in your database, back to basics.

Read More
MySQL - FOUND_ROWS() Function for Total Number of Rows Affected

MySQL – FOUND_ROWS() Function for Total Number of Rows Affected

April 15, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Function, SQL Scripts

In SQL Server you get the number of rows affected with @@ROWCOUNT. In MySQL, you can find the total number of rows with FOUND_ROWS().

Read More
Gouache painting of a small suitcase holding a neatly folded cream blanket beside a much larger empty wooden trunk, the trunk's strap painted vermilion

Error 112 Not Enough Space: Compressed Backup Fails at Random

April 14, 2016
Pinal Dave
SQL Tips and Tricks
Disk, SQL Backup and Restore, SQL Error Messages, SQL Scripts

Error 112 not enough space on the disk failed a client’s backups at random, even though free space looked fine. The cause was how compressed backups pre-allocate the file. Trace flag 3042 fixed it, and a simple free-space rule of thumb helps.

Read More
SQL SERVER - InMemory OLTP Migration Assistant Powershell Script

SQL SERVER – InMemory OLTP Migration Assistant Powershell Script

April 9, 2016
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, PowerShell, SQL Scripts, SQL Server

Is your application ready for In-Memory tables? A client upgrading from SQL Server 2005 asked me, so here is the InMemory OLTP Migration Assistant script.

Read More
SQL SERVER - Identifying Database Default Locations for Data and Logs

SQL SERVER – Identifying Database Default Locations for Data and Logs

April 8, 2016
Pinal Dave
SQL Tips and Tricks
SQL Log, SQL Scripts, SQL Server

Going back to basics can still teach you something new. Here are ways to identify the Database Default Locations for data and log files in SQL Server.

Read More
Previous 1 … 150 151 152 153 154 155 156 … 363 Next
  • Books
  • Testimonials
  • Privacy Policy

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