Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2000-10-29 : 23:46:13
|
Tony writes "I loved your info on xp_sendmail but I have a little problem. Our HelpDesk would like our SQL server to generate an auto-email to the user who sends in a trouble ticket to the HelpDesk. Our HelpDesk software generates a Ticket# and I would like to include that number in the ticket. I know I'll need to declare the variable but I'm getting stuck (and frustrated) on how to insert the variable into the message. In the message, this is what I have.
@message='Thanks for contacting the HelpDesk. Your ticket# is'+@ticket+' and we'll be contacting you shortly.'
I'm receiving an error message regarding the syntax of the '+' near @ticket.
Any advice?? Many, many thanks.
Tony" |
|
|
|
|
|