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 |
pradeep_iete
Yak Posting Veteran
84 Posts |
Posted - 2008-05-02 : 07:03:24
|
hi, In database mail, while execting sp_send_dbmail i want foolowing thing to be done. @recipient=select emaild from <tablename>Is it possible ? |
|
Lumbago
Norsk Yak Master
3271 Posts |
Posted - 2008-05-02 : 07:14:54
|
Probably not but this might work for you:DECLARE @myRecipient varchar(200)SET @myRecipient = (select emaild from <tablename>)EXEC sp_send_dbmail ..., @recipient = @myRecipient--Lumbago |
|
|
pradeep_iete
Yak Posting Veteran
84 Posts |
Posted - 2008-05-03 : 00:52:16
|
Thanx Lumbago,for this piece of work.I wud also like to know "How to handle extented Stored procedures forautomated emails " |
|
|
|
|
|