Viewing 15 posts - 6,706 through 6,720 (of 59,072 total)
I have a huge table with 3B of rows containing around 6 months of data running on Microsoft SQL server 2017 (RTM), which is partitioned day by day on...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 26, 2020 at 2:20 am
Jason A. Long the "s3 string" characters which appear after the brackets do not appear in any of the OP's example rows. Imo that's a made up requirement which...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2020 at 9:07 pm
I will stop now as it is obviously important for you to prove that tally is the only solution. Your tests are based on the fact that the function...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 25, 2020 at 3:41 pm
Yep. Understood. And, I agree... more core and ram isn't going to change the problem with compile times. But, so far, no one has played with more than about 6...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2020 at 10:04 pm
I had been told by people in my agency that my new server was at least good as the old one. However, when the consultant compared the old server...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 24, 2020 at 9:23 pm
In Azure, we also have limited resources!
Hey there, Carsten. I really appreciate that you have limited resources in Azure. It's taking me a while (had to write some code...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2020 at 9:18 pm
This just sounds like the basic skill required for properly documenting any code but slightly extended. The comments should explain the What and Why. You can read the code for...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 23, 2020 at 3:28 pm
Enquiring minds want to know... where the hell did the OP go?
And, yeah... I'm a poet and don't know it. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 8:01 pm
No, the plan for a procedures, functions, ... when then execution cache is not big enough to hold all the plans - do you have a server that can...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 5:28 pm
That's really not helpful at all.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 5:25 pm
Wouldn't it be easier to take a snapshot of sys.dm_db_index_usage_stats from one day till the next and do a comparison? The added benefit here is that it includes...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 5:53 am
Hi,
Please refer below code snippet -
;WITH DateTable AS (
SELECT * FROM (VALUES
('2020-07-01',0,0),
('2020-07-02',0,0),
('2020-07-03',0,1),
('2020-07-04',1,0),
('2020-07-05',1,0),
('2020-07-06',0,0),
('2020-07-07',0,0),
('2020-07-08',0,0)
) AS t(DateValue,isWeekEnd,isHoliday)
),
TicketTable AS (
SELECT * FROM (VALUES
('Ticket1','2020-07-01','2020-07-06'),
('Ticket2','2020-07-07','2020-07-08'),
('Ticket3','2020-07-07',NULL)
) AS t(Ticket,CreateDate,ResolvedDate)
)
SELECT t.Ticket,t.CreateDate,t.ResolvedDate,
DATEDIFF(DAY,t.CreateDate,t.ResolvedDate) - SUM(d.isWeekEnd)-SUM(d.isHoliday)...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 5:49 am
Yes, I was also thinking from a maintenance perspective dynamic would not be the best solution. Today its 3 missing, it might be 5 in the future so adding...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 5:15 am
You said that the files that are missing columns are the same except for the missing columns. With that in mind, it's a whole lot easier if you make...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 5:12 am
You said that the files that are missing columns are the same except for the missing columns. With that in mind, it's a whole lot easier if you make multiple...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2020 at 5:11 am
Viewing 15 posts - 6,706 through 6,720 (of 59,072 total)