Difference of two date time in sql server -


Is there a way to distinguish between sql server in two datetime ?

For example, my dates are

  1. 2010-01-22 15: 29: 55.090
  2. 2010-01- 22 15: 30: 09.153

Therefore, the result should be 14.063 seconds .

1, because this limit is from January to February It has crossed, though this period is 2 days, the value of dated 1 Sessions will - it has exceeded 1 date.

  Dates selected (mile, '2010-01-22 15: 29: 55.090', '2010-01-22 15: 30: 09.153')  
< P> returns 1, again, it passes a one-minute limit, so also it is about 14 seconds, while using the minutes as units it will be returned in the form of a minute.


Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -