Viewing 15 posts - 601 through 615 (of 13,838 total)
You could create a database project in VS and then import the database structure into that. Doing so will create the individual files you need (though not with IF EXISTS...
February 5, 2024 at 4:23 pm
Given your >13,000 points, I need to confirm with you whether this is a joke?
February 5, 2024 at 4:03 pm
Actually i want to do sum of qty in subitem_id 203 and 299 and subtract it form item_id 103 group by item_id.
OK, based on this description, try this
February 5, 2024 at 12:08 pm
Nice try, but there are a few issues.
...
February 5, 2024 at 9:14 am
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,...
February 3, 2024 at 9:52 am
This expression will do that:
right(F,3) == "\" \""? replace(F,"\" \"","\""): F
February 2, 2024 at 4:03 pm
OK, just to be clear, are you saying that you want to change this
"1234-28" "
to this
"1234-28"
?
February 2, 2024 at 3:35 pm
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...
February 2, 2024 at 2:35 pm
Note also that there is a difference between an empty string ("") and NULL.
February 2, 2024 at 10:06 am
Please try this:
REPLACE( F , "\"", "" )
February 2, 2024 at 10:03 am
Once again, if you want coding assistance, please provide consumable sample data for us to experiment with.
February 2, 2024 at 9:55 am
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
...
February 1, 2024 at 3:25 pm
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...
February 1, 2024 at 2:08 pm
Are you sure that this will improve performance? It's going to introduce a lot of code 'waffle', which looks inelegant to me.
February 1, 2024 at 12:16 pm
Please provide your sample data in the form of CREATE TABLE/INSERT statements and also provide your desired results.
February 1, 2024 at 11:40 am
Viewing 15 posts - 601 through 615 (of 13,838 total)