Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29745

Get the TimeValue From SQL Server DMZMGMT SQL server database in Unix and then send an email to users about elapsed time

$
0
0

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.


Viewing all articles
Browse latest Browse all 29745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>