T-SQL

Technical Article

Working with Time Spans and Durations in SQL Server

  • Article

What is the best way to return the "duration" of an event in SQL, given the start and end datetime values? How can we add up these durations to return grand totals? What data types should be used to return this data to our clients? How do we handle overflows, such as when hours go over 23 or minutes total up to over 59? Are there any T-SQL functions or other techniques that are useful in these scenarios?

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(3)

You rated this post out of 5. Change rating

2007-10-24

4,455 reads

SQLServerCentral Article

Collation Error 468

  • Article

Most DBAs don't ever deal with multiple languages or different collation and sort order settings in SQL Server, but it can be a handy piece of information to have. Steve Jones brings us a quick look at a problem in comparing data across databases.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(22)

You rated this post out of 5. Change rating

2007-10-11

11,258 reads

Blogs

A Pursuit of Lifelong Learning

By

The following came across my YouTube feed today. It’s an interview with General James...

Advice I Like: Time and Focus

By

“You don’t need more time because you already have all the time that you...

Book Review: Microsoft 365 Copilot and Agent Administration Fundamentals

By

I don’t currently manage Microsoft 365 Copilot in an enterprise environment, but it is...

Read the latest Blogs

Forums

Alamat Telp BCA KCP Pamekasan Cs 0823-7497-7784

By layanan 24jam BCA

Wa:082374977784 Jl. Jokotole No.4, Rw. 03, Barurambat Kota, Kec. Pamekasan, Kabupaten Pamekasan, Jawa Timur...

Telp BCA KCU BANGKALAN Cs 0823-7497-7784

By m4l4mt194

Wa:082374977784 Jl. Trunojoyo No.15 A, Pejagan, Kec. Bangkalan, Kabupaten Bangkalan, Jawa Timur 69112

DML Trigger Types

By Steve Jones - SSC Editor

Comments posted to this topic are about the item DML Trigger Types

Visit the forum

Question of the Day

DML Trigger Types

How many types of DML triggers are there?

See possible answers