Hi,
I want to populate birthday from database and send a message to that employee.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Saineshwar BageriRank #115 · 19.6K reputationPosted Dec 18, 2014, 8:01 PM EST
http://www.c-sharpcorner.com/UploadFile/prvn_131971/BirthdayWishScheduler02022006012557AM/BirthdayWishScheduler.aspx
http://www.intstrings.com/ramivemula/articles/sending-automated-emails-asynchronously-using-a-c-windows-service-in-conjunction-with-database-email-records-part-i/
Vikram AgrawalRank #4,713 · 329 reputationPosted Dec 18, 2014, 11:19 PM EST
try this
CREATE PROCEDURE dbo.GetBirthdayBuddiesEmails AS Begin
Select * from EmployeeDetails where DATEPART(m, EmployeeDOB)=DATEPART(m,GETDATE()) AND DATEPART(d, EmployeeDOB) = DATEPART(d, GETDATE())
End
This Stored procedure will give you details of employee who have b'day today.
For more details you can visit the following link.
http://www.intstrings.com/ramivemula/articles/sending-automated-emails-asynchronously-using-a-c-windows-service-in-conjunction-with-database-email-records-part-i/