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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 conditional formatting in stored procedure

Author  Topic 

Krb_iiaba
Starting Member

16 Posts

Posted - 2004-01-20 : 14:02:08
I have a url field in a database that contains any format for a url (ie http://www.sqlteam.com, www.sqlteam.com, sqlteam.com, http://sqlteam.com etc). I have a stored procedure that queries this data and returns output to many different apps... the idea is to format the url before it is returned so as to avoid programatically performing a bunch of string functions in all of those apps...
what would be the easiest way of going about this... eaxmple of query below.

SELECT nationalMembershipNumber,( o + '<BR>' + '<a href="' + url + '" target="_blank">' + url + '</a>') as o, etc etc

Thanks in advance!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-01-20 : 14:09:42
Does this help:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=29986

Tara
Go to Top of Page
   

- Advertisement -