Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to send automatic email for birthday wishes were birthday date taken from database in the within the intranet
Posted
Comments
♥…ЯҠ…♥ 29-Nov-13 7:44am    
http://www.codeproject.com/Questions/689822/send-automatic-email-for-birthday-wishes-were-birt both from same team?

1 solution

Throw a select statement against the database making sure to select only those whose DOB's month and day coincide with the current month and day.
Iterate over the result set and send a message for each one.

Hint: Look at this here: DATEPART (Transact-SQL)[^]

Done!
 
Share this answer
 
v2
Comments
Amala S 29-Nov-13 6:26am    
Thank you...
Manfred Rudolf Bihy 2-Dec-13 8:18am    
You are welcome!

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