Link to home
Start Free TrialLog in
Avatar of vinny45
vinny45

asked on

Another T-SQL challenge

well maybe not.

i have many records in a table that start with: 'C://folderfile'

how do i switch it to: 'e://folderfile' without using a cursor if possible
ASKER CERTIFIED SOLUTION
Avatar of rafrancisco
rafrancisco

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
Avatar of rafrancisco
rafrancisco

If you don't want to update the table but just change it during a select:

SELECT REPLACE(YourColumn, 'C://', 'E://') AS YourColumn
FROM YourTable