Viewing 15 posts - 1 through 15 (of 1,468 total)
If you are looking for data for a full month or a full year, then use the start of that year(or month) to the start of the next year(or month). ...
October 15, 2025 at 8:29 am
Firstly, it is safer to use named parameters when calling a proc. If somebody adds a new parameter between the existing ones, you have to go and find and edit...
October 15, 2025 at 5:42 am
Do you have a TOP(n) without an ORDER BY?
Is it always the same symbols that are static, and the same symbols that change?
With such a large query, I would start...
October 14, 2025 at 9:59 am
You cant use a variable here
ROWS BETWEEN @AVERAGE_LENGTH - 1 PRECEDING AND CURRENT ROW)
You can achieve what you are attempting by using Dynamic SQL
DECLARE...
September 29, 2025 at 6:30 am
This tweak seems to solve the issue
Select @requested_qty = CAST(@requested_qty as float) * (@conv_fact_nr /@conv_fact_dr)
September 19, 2025 at 8:23 am
Just ask copilot to look at all of the files in your solution and suggest potential performance improvements.
To be honest, I would not expect any useful feedback from a question...
September 11, 2025 at 1:32 pm
Trying to optimize something just because is like trying to skate uphill into a blizzard.
As Brent Ozar keeps reminding us ... "What problem are you trying to solve?"
Every optimization comes...
September 11, 2025 at 10:28 am
Without data to test, maybe this will do the trick
SELECT f.INVG_ID
, MaxAgentSFRDt ...
July 17, 2025 at 5:25 am
SSMS 21 allows you to integrate directly in to GIT.
July 14, 2025 at 5:34 am
It looks like a sophisticated plug for their company, with 2 links to their site
July 11, 2025 at 10:02 am
A clustered index may appear to retain the sort order. However, there is zero guarantee that it will always be sorted correctly.
The ONLY way to guarantee sort order is to...
July 1, 2025 at 6:16 am
Agreed. But now I am no longer getting email notifications on threads that I reply to.
June 20, 2025 at 8:17 am
Consider a table like this
CREATE TABLE dbo.MyTable (
ID int NOT NULL...
June 19, 2025 at 7:05 am
Why add an IDENTITY? You can use a SEQUENCE object, and set it as the default value for the field. Then you dont need to change anything else. You can...
June 19, 2025 at 6:34 am
It's a bit long-winded, but this is what I came up with
DECLARE @TestData table (id int, dateVal varchar(12));
INSERT INTO @TestData ( id, dateVal )
VALUES ( 1, '00:02:03:123'...
June 11, 2025 at 10:25 am
Viewing 15 posts - 1 through 15 (of 1,468 total)