February 4, 2014 at 2:03 am
Hi,
When I run a select statement the output I get is:
;#Bank;#
;#Finance;#
;#Cash;#
How to remove ;# from the data?
Thanks for the help
February 4, 2014 at 2:42 am
This worked ๐
REPLACE(CAST(ColumnName AS nvarchar(max)),';#','' )AS [Type]
February 4, 2014 at 5:51 am
sql_ques (2/4/2014)
This worked ๐REPLACE(CAST(ColumnName AS nvarchar(max)),';#','' )AS [Type]
What datatype is the input column? Remove the CAST, it's unnecessary overhead.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 4, 2014 at 5:57 am
The datatype of column is ntext
February 4, 2014 at 6:01 am
sql_ques (2/4/2014)
The datatype of column is ntext
Ouch! I remember those...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply