Viewing 15 posts - 256 through 270 (of 2,648 total)
Just to add to the previous comments. I upgraded a system from SQL 2012 to SQL 2019 RDS on AWS. One of the most impactful actions after identifying slow-running queries...
December 5, 2023 at 11:39 pm
SELECT
CASE
WHEN DATEDIFF(SECOND, crtDte, GETDATE()) < 60 THEN 'Just Posted'
...
December 3, 2023 at 2:22 am
Jonathan AC Roberts wrote:UPDATE MM2WO
SET sDesc = TRANSLATE(sDesc, '&<!>!-=', ' ')
WHERE ...https://learn.microsoft.com/en-us/sql/t-sql/functions/translate-transact-sql?view=sql-server-ver16
TRANSLATE not available in 2016.
Oh yes, I was looking...
November 28, 2023 at 7:09 pm
UPDATE MM2WO
SET sDesc = TRANSLATE(sDesc, '&<!>!-=', ' ')
WHERE ...
https://learn.microsoft.com/en-us/sql/t-sql/functions/translate-transact-sql?view=sql-server-ver16
November 28, 2023 at 6:54 pm
Check the 3 underlying views. If they're all pulling from the same tables, it might be worth while to crib some of the code and write a...
November 27, 2023 at 7:58 pm
Check the 3 underlying views. If they're all pulling from the same tables, it might be worth while to crib some of the code and write a separate query,...
November 27, 2023 at 5:41 pm
Your query is probably trying to access all the tables at the same time and on a not very powerful machine with a slow disk it might be slowing it...
November 26, 2023 at 3:13 pm
Heh... pretty typical for things like this. The OP asks a question and then never participates in their own thread. While some great code has been posted, there are...
November 20, 2023 at 5:59 pm
Have you tried rebuilding the clustered index?
November 19, 2023 at 10:21 pm
.
November 14, 2023 at 11:23 pm
Try installing the table valued function here: https://www.sqlservercentral.com/scripts/a-daterange-table-valued-function
Then to select 15 minute intervals as in your example:
SELECT Value
FROM dbo.DateRange('1900-01-01 00:00', '1900-01-01 23:59'...
November 14, 2023 at 11:22 pm
Why do you say "Expected output would be something along these lines"?
You only have 6 rows in your input data, surely it can't be too difficult to type the expected...
November 10, 2023 at 7:11 pm
So what is the output you are expecting from that input?
All you need to do is provide a list of the rows you expect from your input.
The outputs you have...
November 10, 2023 at 6:57 pm
So what is the output you are expecting from that input?
Also, there is an error in your script. Surely it isn't difficult to paste it into SSMS and check it...
November 10, 2023 at 6:29 pm
It's quite simple really. All we want is a short script that creates the input data, then the results you expect from that input data.
November 10, 2023 at 3:57 pm
Viewing 15 posts - 256 through 270 (of 2,648 total)