Viewing 15 posts - 646 through 660 (of 13,876 total)
Nice try, but there are a few issues.
...
I tried pasting that into SSMS and hitting F5, but got a parsing error.
You clearly have not taken the time to read the article to which Jeff directed you. Or,...
This expression will do that:
right(F,3) == "\" \""? replace(F,"\" \"","\""): F
OK, just to be clear, are you saying that you want to change this
"1234-28" "
to this
"1234-28"
?
Still using SSMS 18.x since my second most important Addon (besides Redgate SQL Prompt) with the name SSMSBoost seems to be deprecated and there is no version that works...
Note also that there is a difference between an empty string ("") and NULL.
Please try this:
REPLACE( F , "\"", "" )
Once again, if you want coding assistance, please provide consumable sample data for us to experiment with.
This semi-join version of the UPDATE might perform better
UPDATE pt
SET LastModifiedDateTime = @dt
FROM PlayersTypes pt
WHERE EXISTS
(
SELECT 1
FROM @TableTypePlayersTypes ttpt
...
Viewing 15 posts - 646 through 660 (of 13,876 total)