M
M
Max Trophy2017-01-23 17:04:18
SQL Server
Max Trophy, 2017-01-23 17:04:18

Sending out a database mail alerting you to upcoming birthdays?

There is a table in the database - a list of employees in the company. Name | Date of Birth.
There is an idea to set up mailing of letters through db mail - when someone's birthday is approaching (for example, next week) - a letter to employees.
The question of a person who can only write selects and inserts.
How to google to realize such an idea? ))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2017-01-23
@kapitoly

Well, as an option - google the unflattering word blat (this is such a command-line mailer) + xp_cmdshell
is completely knee-deep, but just for those who know how to write selects

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question