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 2005 Forums
 Transact-SQL (2005)
 Replace : with carriage return

Author  Topic 

bhavna
Starting Member

6 Posts

Posted - 2008-12-12 : 14:43:48
Hi,

I have following query to replace : with carriage return.

Can anybody help me?

select CALL_ID ,IVR_DNIS, REPLACE(IVR_ADMIN.fnParseArray(MAPPING,':'),':',CHAR(13) + CHAR(10)) "MAPPING"
from IVR_ADMIN.IVR_CALL_DATA cd
order by cd.IVR_DNIS, cd.IVR_ANI

-Bhavna

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-12 : 14:50:32
This seems to be a duplicate of your other thread. This type of thing shouldn't be handled in SQL, but rather it is a presentation issue and should therefore be handled by your application.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

bhavna
Starting Member

6 Posts

Posted - 2008-12-12 : 15:12:55
Hi,

I am not using any other application to represnt. I am using this SQL Query which uses the fnParseArray function.

So, I have to represent either using the function or this SQL query and need of Carriage return in place of :

-Bhavna
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-13 : 00:35:34
what does this give you?
SELECT REPLACE(MAPPING,':',CHAR(13) + CHAR(10)) FROM table...
Go to Top of Page
   

- Advertisement -