i have table,
id Name
1 aaaaAAbbbb
2 bbbbAAaaaa
3 aabbAAbbaa
This is my table,i want to update 'AA' with 'BB' using sql server 2008
i have table,
id Name
1 aaaaAAbbbb
2 bbbbAAaaaa
3 aabbAAbbaa
This is my table,i want to update 'AA' with 'BB' using sql server 2008
update myTable set [Name] = REPLACE([Name], 'AA', 'BB')
REPLACE
applies to SQL Server 2008 upwards.