Viewing 15 posts - 1 through 15 (of 50 total)
Hello Brain2000,
You are right mentioning that SQL Server licenses are expensive, and I admit that unzipping on the server is unusual and unexpected.
Like Ool2t5902 mentions, I use the function to...
June 20, 2024 at 2:58 pm
I just published an article (https://www.sqlservercentral.com/articles/unzipping-word-documents-in-tsql) that explains how to natively unzip in T-SQL
June 19, 2024 at 8:09 pm
You are right Phil. Images are heavily compressed. I did not express myself correctly as I meant that images are not compressed XML files. You are also right saying I...
June 19, 2024 at 1:12 pm
I performed my tests on a local SQL Server 2019. I will experiment with all received suggestions during the holidays. Many thanks to all of you and happy holidays!
December 22, 2022 at 2:15 pm
The following statement runs in 4 seconds and is definitely better:
SELECT
B.ID,
D.Value
FROM #Big B
LEFT MERGE JOIN (
SELECT ID, dbo.GetValueInLanguage('fr', XmlValue) AS Value...
December 21, 2022 at 10:16 pm
I want to thank you all for your suggestions. This case had me revisit some concepts of SQL Server I usually ignore or avoid.
My procedure declares a lot of variable...
March 31, 2022 at 2:24 pm
Jonathan,
OPTIMIZE FOR UNKNOWN cannot be applied to a stored procedure. EXEC myStoredProc WITH RECOMPILE does not make it faster.
In an earlier post, Scott suggested to add BEGIN TRANSACTIONS and COMMIT...
March 29, 2022 at 9:14 pm
Jonathan,
There is no problem with the UPDATE. All indexes are created. Moreover, tables #SecuritiesClass and #SecuritiesClassRules only contain 3 records. By putting GETDATE() before and after the UPDATE, I can...
March 29, 2022 at 7:27 pm
Hi Ken,
For your knowledge, this is the actual statement that triggers the problem:
UPDATE SC
SET
SC.QuickEffectiveDate = SCR.EffectiveDate,
SC.QuickNominalValueChangeTypeID = SCR.NominalValueChangeTypeID,
SC.QuickHasRightToVote = SCR.HasRightToVote,
...
March 29, 2022 at 6:34 pm
Thanks ratbak,
When I check "Include Actual Execution Plan", I am not getting a big plan, I am getting tons of single plans for every SELECT, INSERT, UPDATE or DELETE and...
March 29, 2022 at 5:33 pm
Ken,
Compatibility level is 150. QUERYTRACEON 9481 has no effect.
Thanks.
September 27, 2021 at 8:48 pm
homebrew01,
Of course I can fill a temp table and apply the WHERE clause on a "SELECT * FROM #TEMP" statement. This approach has been discussed in forums for ages. But...
September 27, 2021 at 6:42 pm
Jonathan,
All reports are based on a "body" statement and the WHERE and ORDER BY clause is added according to the user choices. The resulting statement is always executed with OPTION...
September 27, 2021 at 2:42 pm
Frederico,
I also think that SQL Server is being lousy in this particular case. I would not mind if my "unoptimized" statement would run twice or three times slower but we...
September 27, 2021 at 2:12 pm
Hi Scott,
like I mentioned earlier, the WHERE clause is added afterwards in my application (so the user can choose to see archived corporations only, active corporations only or both). Therefore,...
September 24, 2021 at 6:37 pm
Viewing 15 posts - 1 through 15 (of 50 total)