Hello. I am having trouble with ths SQL code in sql analyzer. I am trying to change the lastname O'NEIL to
ONEIL.
Update cal.dbo.name
set last = Replace(last , "'", "")
where last LIKE 'O''NEIL%'
This is the error I get.
Server: Msg 1038, Level 15, State 3, Line 2
Cannot use empty object or column names. Use a single space if necessary.
ONEIL.
Update cal.dbo.name
set last = Replace(last , "'", "")
where last LIKE 'O''NEIL%'
This is the error I get.
Server: Msg 1038, Level 15, State 3, Line 2
Cannot use empty object or column names. Use a single space if necessary.