Microsoft
Software
Hardware
Network
Question : How to modify a MS SQL Server 2005 table record for the value of a field that contains multiple values?
I am working with a table in SQL Server 2005.
I have a table named tableA and it has a field named SystemContact and a field named Application.
The field SystemContact can have multiple values for any record. The values are people's
names followed by a semi colon.
Let's assume that for a tableA record where Application = 'WLD',
SystemContact has a value as follows:
John Smith;Joe Franks;Jill Fieldstone;Bob Rowe;George Blanda
Is there a SQL Statement that could update the record where Application = 'WLD', so
that the SystemContact value will be changed to the following value:
John Smith;Joe Franks;William Stemp;Bob Rowe;George Blanda
In this record, the SystemContact value of Jill Fieldstone has been changed to William Stemp.
Answer : How to modify a MS SQL Server 2005 table record for the value of a field that contains multiple values?
UPDATE TABLE1
SET SystemContact = 'John Smith;Joe Franks;William Stemp;Bob Rowe;George Blanda'
WHERE Application = 'WLD';
Random Solutions
Drupal Admin account issue
How to download and install/register ActiveX
need text to flow evenly between vertical columns
subquery
Is it possible to jump IP scope with Route Add command?
Exchange 2007 Command Shell: Public Folder Permissions
Drop Down Menu by C(LInux/Console Base)
Populate a Listbox with a query on MS Access
Some harddrives are "missing" after image recovery
How to replace strings in a text file using powershell