I have this query in SQL server , It yields time difference value between two steps. I need to send an email via UNIX with the time difference value .
So I need to do the following steps which i am not aware of: 1. Connect Unix to SQL server to yield time difference value. 2. Send an email with time difference value.
Query:
select Audit1.Time_ Time_Full_Calc , Audit2.Time_ Time_Step2_Calc ,Cast(Audit2.Time - Audit1.Time As Time ) As TimeDifferencefrom Schema.dbo.Table Audit1 inner join Schema.dbo.Table Audit2on CAST(Audit1.Time AS date) = CAST(Audit2.Time AS date)where CAST(getdate() AS date) = CAST(Audit2.Time AS date)and CAST(getdate() AS date) = CAST(Audit1.Time AS date)
Thanks In Advance.