Viewing 15 posts - 646 through 660 (of 13,874 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
...
We saw that it improves performance.
Why not? Making join usually takes more resources and time then simple select.
First you check whether the table has data. Then you obtain the...
Are you sure that this will improve performance? It's going to introduce a lot of code 'waffle', which looks inelegant to me.
Viewing 15 posts - 646 through 660 (of 13,874 total)