|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Creating hyperlink in TSQL
I am trying to insert a Hyperlink into an email using TSQL.
Can anybody give me some advice on how to create such an hyperlink? And would it be the same method for a mailto link? Many thanks NetWRX |
|
#2
|
|||
|
|||
|
RE: mysql?
let's say you were selecting a field called URL from a table called table1, you could do something like this:
select '<a href="' + URL + '">Click Here!</a>' from table1 for mailto, assuming a field called emailaddress: select '<a href="mailto:' + emailaddress + '">' + emailaddress + '</a>' from table1 |
|
#3
|
|||
|
|||
|
RE: Creating hyperlink in TSQL
Thanx anon but that is not the solution
Its is still appearing in text format and not hyperlink :confused: Anybody please help :starts pulling hair out: |
|
#4
|
|||
|
|||
|
RE: mysql?
Could you explain how you are sending mail with tsql in the first place?
|
|
#5
|
|||
|
|||
|
RE: Creating hyperlink in TSQL
Hi anon,
I am using xp_sendmail. The adress is coming from database using an on insert trigger. So the aim is to get link from database and convert it into a hyperlink in the email. hope this gives you some understanding. |
|
#6
|
|||
|
|||
|
RE: mysql?
That clears things up a bit. xp_sendmail is not capable of sending a HTML mail. You would probably want to look at using another method of send mail...check out this article from microsoft on sending mail without xp_sendmail:
http://support.microsoft.com/defaul...b;en-us;Q312839 |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Creating hyperlink in TSQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|