views:

20

answers:

2

Hi ,

I have column which consists of path for example \Abc\F\E\record_123 , now i need to update the path in database where only one change i need to do is tht

\Abc\F\E\record_123 = \Abc\F\G\record_123 - i want to update E to G .

how to do that with update query in database .

Can anyone help me its urgent.

Thanks Smartdev

A: 

See SQL Server string functions on MSDN. REPLACE() would be a good candidate.

cdonner
Thanks for link and help it worked
SmartDev
+1  A: 
REPLACE('\Abc\F\E\record_123', '\E\', '\G\')

You have clear delimiters that allows you to pick out the bits you want to replace

gbn
Thanks gbn it worked.
SmartDev