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
Stone stacks have three distinct heights, with two middle-height stacks and one marked by a vermilion thread

Interview Question of the Week #050 – Query to Retrieve Second Highest Salary of Employee

December 20, 2015
Pinal Dave
SQL Interview Questions and Answers

A classic interview question: write a query to retrieve the second highest salary, or any Nth highest, from an employee table using a correlated subquery.

Read More
MySQL - Date and Time Related System Functions

MySQL – Date and Time Related System Functions

December 19, 2015
Pinal Dave
SQL Tips and Tricks
MySQL

MySQL has several date and time related system functions, like curdate(), curtime(), now(), current_timestamp() and UTC versions such as utc_timestamp().

Read More
SQL SERVER - Recompiling InMemory OLTP with SQL Server 2016

SQL SERVER – Recompiling InMemory OLTP with SQL Server 2016

December 18, 2015
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP

Can you recompile natively compiled InMemory stored procedures? I test recompiling InMemory OLTP objects in SQL Server 2016 with a step by step demo.

Read More
Diagram of transactional replication: the Publisher with the source database sends changes to the Distributor with the distribution database, which delivers them to the Subscriber with the destination database

Readable Secondary in Standard Edition: Transactional Replication Setup

December 17, 2015
Pinal Dave
SQL Tips and Tricks
AlwaysOn, Notes from the Field, SQL Replication, SQL Scripts, SQL Server

A secondary server sitting idle as a backup feels like a waste. In Notes from the Field #107, Kenneth Urena shows how to build a readable secondary in Standard Edition with transactional replication.

Read More
Gouache painting of a closed wooden toolbox on a shelf beside a clay flowerpot, its brass clasp tied shut with a single vermilion tag

Error 598: SQL Server Fails to Start After Patching

December 16, 2015
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Service Pack, SQL Upgrade, Starting SQL

Error 598 can stop SQL Server from starting right after a patch. In this case the script level upgrade failed because the service account could not create a temporary database file. Giving that account permission on the instance folder let the restart succeed.

Read More
Server Side' tab in SQL Server Data Tools.

SQL SERVER – Server Side and Client Side Trace

December 15, 2015
Pinal Dave
SQL Tips and Tricks

Running Profiler on the server does not make it a server side trace. I explain the real difference between server side and client side trace in SQL Server.

Read More
Gouache painting of a row of wooden beads on linen ending in a small vermilion knot, with the last bead sitting apart on the cloth

Extracting the Folder and File Name From a Full Path in T-SQL

December 14, 2015
Pinal Dave
SQL Tips and Tricks
Best Practices, File format, SQL Server

Split a path at the last backslash and handle the odd inputs. Bare names, empty values, trailing spaces and NULL all behave.

Read More
Previous 1 … 343 344 345 346 347 348 349 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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