Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to remove unwanted characters apart from comma from a comma separated table column in SQL server 2014

$
0
0

I have a table where in I m loading whatever is supplied to me in staging table

The staging table 

create table stg

(

ID INT IDENTITY(1,1),

NAME VARCHAR(50),

Commaseparated varchar(1000)

)

insert into stg (name,Commaseparated ) values( 'John','

test record one (record1; no HR),test record 2 and test record3 (record3 ; no HR)')

I would like to clean the comma separated column and would like to retain comma only.

Need to clean staging data as currently the csv supplied data dump has lot of unwanted characters ; ) (

How to remove unwanted characters apart from comma from a comma separated table column in SQL server 2014?

I m looking for the best possible solution.





Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>