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
Format() Function & DATETIME.

SQL SERVER – Learning New Multipurpose FORMAT Function

June 12, 2017
Pinal Dave
SQL Tips and Tricks
File format, SQL DateTime, SQL Function, SQL Scripts, SQL Server

Before SQL Server 2012 you needed CONVERT with style codes to format dates. See how the FORMAT function gives you dd/mm/yyyy, mm/dd/yyyy and more in one call.

Read More
A stopcock wired shut with a red seal on a pipe in a plant room

SQL SERVER – Not Able to Kill SPID with KILL WITH STATUSONLY

June 10, 2017
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

Can’t kill SPID with KILL WITH STATUSONLY? It reports a rollback, it does not start one. Why KILLED ROLLBACK lasts, and why to wait.

Read More
Round up and down arrows.

How to Round Up or Round Down Number in SQL Server? – Interview Question of the Week #125

June 4, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Datatype, SQL Function, SQL Scripts, SQL Server

How do you round up or round down a number in SQL Server? A quick answer using ROUND, CEILING and FLOOR, and how each one behaves.

Read More
Alternate To Agent Datetime.

SQL SERVER – Alternate to AGENT_DATETIME Function

June 2, 2017
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts, SQL Server

An alternate to AGENT_DATETIME: convert integer date and time values to a datetime with CAST and STUFF, without any msdb function or permission issue.

Read More
Why SELECT HOST_NAME() Returns Empty String? - Interview Question of the Week #119

Why SELECT HOST_NAME() Returns Empty String? – Interview Question of the Week #119

April 23, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Connection, SQL Function, SQL Server, SQL Server Management Studio

Question: Why SELECT HOST_NAME() Returns Empty String while connected from certain .net application?

Read More
SQL Server interview question of the week #118.

What is the Difference between TRUNCATE and DELETE in SQL Server? – Interview Question of the Week #118

April 16, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Scripts, SQL Server, SQL Table Operation

What is the difference between TRUNCATE and DELETE in SQL Server? An interview question that never gets old, with a clear list of the differences.

Read More
Random records from table.

How to Get Random Records from Table? – Interview Question of the Week #105

January 8, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Function, SQL Random, SQL Scripts, SQL Server

How do you get random records from a table? This interview question never gets old. Here is the ORDER BY method I use because its syntax is easy to remember.

Read More
Previous 1 … 15 16 17 18 19 20 21 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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