Viewing 15 posts - 31 through 45 (of 2,062 total)
For SSIS, there is a property "Clean logs periodically" with retention days. This probably creates an "SSIS Server Maintenance Job" sql agent job.
For maintenance plans you can create a new...
July 17, 2025 at 8:02 am
Can you refine the logic with some sample data / wanted output?
select *
from A
where not exists (select * from b where a.server=b.server and a.login=b.login )
or
select *
from...
July 16, 2025 at 10:10 am
At first glance you use a lot of user defined functions. That makes it difficult for the SQL Server to optimize the execution as it is hidden in function logic.
Have...
July 11, 2025 at 1:18 pm
Indeed, was for a different post. Your answer should work. My usual culprit is a monitoring tool
June 11, 2025 at 3:52 pm
Grant probabily wrote it that way for readability
with solution as (....) /*sampledata and solution*/Select ... from solution /* verify */
June 11, 2025 at 3:50 pm
*wrong post*
June 11, 2025 at 8:21 am
There is probably a non-printable character in it.
CREATE TABLE #DIVIDENDS_NEW
(
[DIVIDEND_AMOUNT] [varchar](15) NULL
);
insert into #DIVIDENDS_NEW select NULL;
insert into #DIVIDENDS_NEW select '5';
insert into #DIVIDENDS_NEW select CHAR(10); /* invisible character*/
SELECT...
June 5, 2025 at 8:53 am
The upper part is probably status (84)
and the lower part your history
SQL Server has to match history with status before it can filter out on statusValidFrom
It decided it would need...
May 30, 2025 at 1:09 pm
The ranking function solve this as Johan mentioned
WITH SELECTIE AS
(
SELECT mypk ...
,ROW_NUMBER() over
(
PARTITION BY column1, column2 ... /* defines the...
May 26, 2025 at 3:26 pm
You may try setting up deadlock monitoring with extended events https://www.mssqltips.com/sqlservertip/5658/capturing-sql-server-deadlocks-using-extended-events/
You may adjust IndexOptimize to only maintain statistics instead of rebuilding/reorganizing indexes ( those are intensive with low gains) (*...
May 21, 2025 at 2:36 pm
Sometimes SQL Servers filters very late
and it is possible to have divide by zero on rows that aren't relevant
because they are done before SQL Server decides to filter them out.
May 9, 2025 at 9:53 am
Sometimes SQL Servers filters very late
and it is possible to have divide by zero on rows that aren't relevant
because they are done before SQL Server decides to filter them out.
May 9, 2025 at 9:53 am
Now it's in a novel/comic format, I might read it
May 2, 2025 at 7:58 am
Currently using Veeam. It has a short I/O freeze when it backups when VSS writer orders SQL to pause for a few seconds.
It makes it easier for the sysadmins in...
April 29, 2025 at 3:19 pm
Viewing 15 posts - 31 through 45 (of 2,062 total)