Date Calculations

SQLServerCentral Article

Combine DATE and TIME to DATETIME2 in SQL Server

  • Article

The most common method on the internet for combining DATE and TIME columns in SQL Server is incorrect. This article demonstrates why that and other methods are incorrect and two lesser known high performance methods that produce correct results even for the "edge cases".

5 (3)

You rated this post out of 5. Change rating

2023-08-07

4,032 reads

SQLServerCentral Article

4.9 (10)

You rated this post out of 5. Change rating

2022-07-13

15,410 reads

Blogs

Penetration Testing your SQL Server, Part 1 – The Recon Mission

By

Since witnessing a rather nasty cyber attack around a year ago, I’ve been thinking...

SQL Saturday Denver 2023–VCS Primer for the Database slides

By

My slides are here: VCS Primer Denver 2023 This was an overview of what...

Future Data Driven 2023 is This Week

By

The Future Data Driven 2023 virtual conference is coming on Wednesday, September 27. Register...

Read the latest Blogs

Forums

Convert columns result into rows with comma and single quotes

By Raja mssql

Hi All, Hi All, I want to convert columns result into rows with comma....

Does multi-subnet with standardeditionofsqlserver supports DB Mirror Or AG group

By naga.rohitkumar

Does multi subnet failover with standard edition of sqlserver supports DB Mirror or AG...

post steps for Table PARTIONING

By sqlguy80

Any one did Table partitioning in Prod, please list steps here. we have a...

Visit the forum

Ask SSC Logo Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers