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
Four unequal woven cloth strips form one continuous sequence across an oak bench in a sunlit stone workshop.

Running Start Times: Build an Agenda With SQL

November 25, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Order By, SQL Scripts

Running start times depend on the durations that precede each activity. Use ordered window sums while retaining full dates and explicit end boundaries.

Read More
Execution time statistics.

SQL SERVER – Retrieve – Select Only Date Part From DateTime – Best Practice – Part 2

October 18, 2008
Pinal Dave
SQL Performance
Best Practices, SQL DateTime, SQL Function, SQL Scripts

Which way to select only date part from DATETIME is faster? After more tests on large tables, I now suggest the DATEADD and DATEDIFF method over CONVERT.

Read More
Gouache painting: on a straight farm lane two gateposts stand apart

SWITCHOFFSET Versus TODATETIMEOFFSET: Two Offset Operations

October 7, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

SWITCHOFFSET versus TODATETIMEOFFSET depends on the input contract. Preserve a known instant or attach an offset to a genuinely local clock.

Read More
Gouache painting: a second towel lies loose beside it

DATETIMEOFFSETFROMPARTS: Build an Explicit Offset

October 2, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Server

DATETIMEOFFSETFROMPARTS constructs a local clock with an explicit offset. Keep both component signs consistent and validate the complete input.

Read More
questions

SQL SERVER – Interview Questions and Answers – Part 6

September 17, 2008
Pinal Dave
SQL Interview Questions and Answers
Database, SQL Data Storage, SQL DateTime, SQL Function, SQL Index, SQL Scripts, SQL Server, SQL Utility

Part 6 of my SQL Server Interview questions and answers covers SQL Server 2008, starting with what the master, msdb, model, tempdb and resource databases do.

Read More
SQL SERVER - Few Useful DateTime Functions to Find Specific Dates

SQL SERVER – Few Useful DateTime Functions to Find Specific Dates

August 29, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Useful DateTime functions from Vivek Jamwal: find today, yesterday, and the first and last day of the current or last week and month with DATEADD.

Read More
Seven smooth stones on a wooden tray beside a sage bowl, with one stone tied in red ribbon and a pale folded cloth.

Stable Weekday Numbers Without Changing DATEFIRST

August 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Function, SQL Scripts

Stable weekday numbers use a fixed Monday anchor and negative-safe modulo. Map Monday to one without changing DATEFIRST or session language.

Read More
Previous 1 … 21 22 23 24 25 26 27 … 30 Next
  • Books
  • Testimonials
  • Privacy Policy

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