1
Hi Purvesh,
please refer to these links
https://www.codeproject.com/tips/846204/how-to-send-mail-using-sql-server-part
https://stackoverflow.com/questions/13300881/how-to-send-email-from-sql-server
you can write a SP to iterate through table using cursor, use this link
https://stackoverflow.com/a/20662486
0
Hi,
Try the microsoft docs code :
https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-send-dbmail-transact-sql
Other Reference :
https://www.emailarchitect.net/easendmail/kb/sql.aspx?cat=0
http://www.c-sharpcorner.com/UploadFile/ee01e6/how-to-send-mail-by-using-sql-server-part-2/