Click here to Skip to main content
15,896,348 members

Comments by Baliram Suryawanshi (Top 2 by date)

Baliram Suryawanshi 20-Sep-14 0:58am View    
Execute below statement with hard coded time:
-- With Specified time

SELECT DATEDIFF(mi, '12:34:34', '12:34')/60;

It should not give any error. It works with SQL server 2012 as well.


If you are getting error in the scripts when you execute it with column names then it must be due to invalid data available in your column. With invalid I mean non-datetime data.
If it is case, first try to convert the invalid data in Time.
Baliram Suryawanshi 19-Sep-14 8:40am View    
Yes, Remove statement "WHERE (FaultText = 'NON-STANDARD FAULT DETECTED')" form your view definition