Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate expression
Message
From
10/11/2006 12:08:44
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01168770
Message ID:
01168775
Views:
7
>Hi All,
>
>I am designing a stored procedure that will send an email to all receipients
in a queue. I decided to replace the following line in order to lookup and set the subject of the email dynamically:
>
>set @subject = 'IPO # ' + ltrim(rtrim(str(@iIpoId))) + ' Notification'
>
>to:
>
>set @subject = (select cEmailSubject from webforms.dbo.lookup_emailTemplate where iEmailTemplateID = @iEmailTemplateID)
>
>
>where the cEmailSubject field is:
>'IPO # ' + ltrim(rtrim(str(@iIpoId))) + ' Notification'
>
>In a result the email title is:
>'IPO # ' + ltrim(rtrim(str(@iIpoId))) + ' Notification'
>
>How can I get it to evaluate and display something like :
>
>IPO # 1234 Notification
>
>Thank you,
>Daniel

Did you set value for @iIpoId already?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform