SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Store/Use HTML code in MSSQL 2008
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SantanaSQL
Starting Member

6 Posts

Posted - 12/03/2013 :  08:33:32  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

Pakistan
1050 Posts

Posted - 12/03/2013 :  09:47:51  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000