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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Store/Use HTML code in MSSQL 2008

Author  Topic 

SantanaSQL
Starting Member

6 Posts

Posted - 2013-12-03 : 08:33:32
Hi

I have a HTML code in SP that I need in the Database so that I can re-use. When calling the code from SP it does not work, it just sends the code as text, but when I have the HTML code in SP it works well.

Here is the Code:

'Dear ' + @FirstName +
'<br><br><br> Thank you for registering with our company.<br><br>' + @companyaddress.'

This code is stored in SQL database, when calling it fron SP it sends it in an Email as text formt not as HTML format. but when using it in SP it works well.

Any help is well appreciated.

Thanks
Santana

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2013-12-03 : 09:47:51
I am not getting it
quote:

This code is stored in SQL database, when calling it fron SP it sends it in an Email as text formt not as HTML format. but when using it in SP it works well.


1) Calling it from SP sends it in an email as text format??? but
2) when using it in SP it works well???

Can you illustrate the issue with an example?

Cheers
MIK
Go to Top of Page
   

- Advertisement -