Viewing 15 posts - 1,576 through 1,590 (of 2,645 total)
The code from Google is actually quite a lot slower than the OP's original code.
If you want to keep with your original code there are a few things you can...
May 8, 2019 at 4:53 pm
Maybe you could provide the code you have written so we could see why it's taking so long and see if there are any improvements that could be made?
I think...
May 8, 2019 at 3:10 pm
Do you know about holding down the Ctrl key while using the select the same position on multiple lines? it's super useful (you can hold down shift to highlight...
May 8, 2019 at 11:09 am
Jonathan AC Roberts, I popped your code into my editor and ran it. Ran without modification. Kudos to you for doing that without being able to test. It almost...
May 7, 2019 at 10:11 pm
the first issue I see with the code above from Jonathan AC Roberts is that the schedule times would only show if day 1 has a person scheduled.
You could...
May 7, 2019 at 3:13 pm
I think this should do it:
DECLARE @startdate AS datetime
SET @startdate = '4/1/19';
WITH CTE AS
(
SELECT DISTINCT
...
May 7, 2019 at 1:30 pm
from @startDate
left outer join Schedules day1 /* missing ON */
left outer join EmployeeInformation Emp1...
May 7, 2019 at 1:14 pm
It is an undocumented feature which sometimes works and sometimes doesn't. Which is why it is best to not use it.
There are a few discussion in sqlservercentral posts about when...
May 6, 2019 at 4:10 pm
I think you should be using FOR XML PATH:
DECLARE @Country1 VARCHAR(3) = 'NL',
@Country2 VARCHAR(3) = 'BE',
...
May 6, 2019 at 3:46 pm
If you have SQL Server Enterprise you can use ONLINE = ON on the create index statement. This is supposed to allow transactions to continue on the table...
May 1, 2019 at 8:52 pm
If you have SQL Server Enterprise you can use ONLINE = ON in the create index statement. This is supposed to allow transactions to continue on the table while the...
May 1, 2019 at 1:37 pm
Hi there, I have around 12 views and that works perfect if I execute them individually but when I combine them using UNION ALL it takes long time to...
April 30, 2019 at 10:32 am
We had similar peaks at regular intervals, can't remember the exact interval, it might have been about 15 mins.
I think it might be to do with having a clustered pair...
April 26, 2019 at 8:54 am
Can't you just determine which rows are to be inserted/updated by a JOIN during the insert/update? Or am I missing something?
I think you want an UPDATE followed...
April 25, 2019 at 3:16 pm
Unless I'm misreading the given solution, it won't properly calculate the time difference correctly for entries that span a date boundary. This is one of the many reasons...
April 25, 2019 at 2:23 pm
Viewing 15 posts - 1,576 through 1,590 (of 2,645 total)