Viewing 15 posts - 1 through 15 (of 58,460 total)
I would use the following code to get 'last' Sunday. Seems a bit simpler than the current version.
SELECT DATEADD (wk, DATEDIFF (wk, 0, GETDATE ()), 0)...
April 15, 2024 at 2:01 pm
Do not use DATEDIFF(WK) if you need for the first of the week to be based on any day of the week other than SUNDAY. It is ALWAYS based on...
April 15, 2024 at 1:38 pm
That might be your network or connection. The links work for me.
Might be me, indeed. I'm running some pretty secure connections. If the connection doesn't prove themselves to...
April 13, 2024 at 1:56 am
And then there's the change in security or the deletion of a full site with no record but a trail of now broken links...
Secure Connection Failed
An error occurred during a...
April 12, 2024 at 9:18 pm
I think your point about humans needing a change of pace rings true.
I know it sounds daft but I used to enjoy the excitement that surrounded a major...
April 11, 2024 at 7:07 pm
I uploaded your picture to ChatGPT 4 and asked it to: "Write a SQL Server create table (table name: XXXRE60P) and insert script for this, make sure you...
April 11, 2024 at 6:30 pm
I've discovered that the table is updated overnight and the issue re-occurs overnight.
If I run the code in the morning then it takes too long to complete. If I...
April 9, 2024 at 12:54 pm
Excellent query Jeff. Thank you, thank you! Multiplying by 'combo' within the TOP clause is very nice
Thanks for the feedback, Steve. The hard part was to make "Combo" available...
April 9, 2024 at 12:08 pm
You working code link leads to a "Run this fiddle" link. I cancelled from there.
April 9, 2024 at 12:06 pm
Since you posted a graphic of the execution plan instead of an actual execution plan and you post no meta-data for the table and you posted no code, we're going...
April 9, 2024 at 11:55 am
The correct term is "PFM". 🙂
WITH cteCombo(Combo) AS (SELECT TOP 1 is_combinable FROM #project_types ORDER BY NEWID())
SELECT project_types_ = string_agg(ca.project_type, N', ')
...
April 9, 2024 at 12:43 am
but most of the clients wants also using Manually written SQL statements using a functions we call "AdHoc Query" which basically sends the text as Query, and they can...
April 2, 2024 at 5:51 pm
Remember the company that we're talking about...
It's the company that couldn't see the benefit of a series generator for more than 15 years and, when they finally did release it,...
March 30, 2024 at 3:07 pm
I've not used or done a deep review of the article at the following link but, at a 60,000 foot level, it seems like it may be one of the...
March 30, 2024 at 2:08 am
Thanks for posting your discovery, Mark.
March 30, 2024 at 12:37 am
Viewing 15 posts - 1 through 15 (of 58,460 total)