Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a stored procedure that is asking two parameters
1. Current date
2. Branch_code ( 1 or 2)


when i run the stored procedure it is giving the required output.

My requirement is
I just want to send the output to xyz@gmail.com every day at 8 'o' clock.

is this possible in sql server..?
Posted

sending the email - not hard sp_send_email (if its set up etc) http://msdn.microsoft.com/en-us/library/ms190307.aspx[^]

its triggering it at 8 o'clock .. Id be tempted to use a scheduler (even windows scheduler) and run a small exe that executes a stored proc that pulls the whole thing together ie run the first stored proc, then does the email
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900