hello, i'm working on sql server and i'm writting a procedure to send an email.
The following code is giving me an error when I run it, i've seen some examples but I don't know how to solve it by keeping my "Union all " command.
The following code is giving me an error when I run it, i've seen some examples but I don't know how to solve it by keeping my "Union all " command.