Link to home
Start Free TrialLog in
Avatar of Contemporary_Cybernetics
Contemporary_Cybernetics

asked on

Update Column Data in Table

Hello everyone.

I have a table with four columns. One of these columns contains data about specific locations of items, which I need to change. I'd like to update the table, replacing all instances of the server share location with a different one.

I need to select "|\\server\folder1\folder2\folder3\document" and replace it with "|\\differentserver\folder1\folder2" etc.
ASKER CERTIFIED SOLUTION
Avatar of RiteshShah
RiteshShah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can check value by selecting it before executing update statement.

select replace(yourfiledname,'|\\server\folder1\folder2\folder3\document','|\\differentserver\folder1\folder2')
from tablename where server1='condition'
Avatar of Contemporary_Cybernetics
Contemporary_Cybernetics

ASKER

Yep, I actually figured that out about 2 minutes ago. Thanks for the help, though.