Guys, I was wondering if you could help me.
I need to get rid of all non alpha numeric characters in fields.
Do you know any quick way to do it?
Please have in mind I'm not an expert in vb, so was looking for simpler way to do it, unless you could tell me what exactly write and where to put it in
I came up with this, but getting syntax errors
UPDATE table1 SET string_name=REPLACE(string_name,SUBSTRING(string_name,(PATINDEX('%[^a-zA-Z0-9]%',string_name)),1),' ') WHERE PATINDEX('%[^a-zA-Z0-9]%', string_name)<>0;
Thanks!
I need to get rid of all non alpha numeric characters in fields.
Do you know any quick way to do it?
Please have in mind I'm not an expert in vb, so was looking for simpler way to do it, unless you could tell me what exactly write and where to put it in

I came up with this, but getting syntax errors

UPDATE table1 SET string_name=REPLACE(string_name,SUBSTRING(string_name,(PATINDEX('%[^a-zA-Z0-9]%',string_name)),1),' ') WHERE PATINDEX('%[^a-zA-Z0-9]%', string_name)<>0;
Thanks!