Viewing 15 posts - 196 through 210 (of 2,646 total)
You could see how the performance is if you drop the clustered index, after dropping the clustered index the view will just behave like a normal view.
Check what indexes are...
February 22, 2024 at 3:21 pm
What index have you got on that view?
February 21, 2024 at 7:47 pm
I'm not sure why the index recommendation has INCLUDE columns on it because it has to delete the row from the table.
Is there an FK to tblRecords_Unfiltered on tblAlert_Owners_Unfiltered? If...
February 21, 2024 at 5:46 pm
A lot of the child tables have very few rows, so I don't think an index on the FK column would have much effect.
How many rows are in tblAlert_Owners_Unfiltered?
February 21, 2024 at 4:51 pm
It's probably going so slow as you have no indexes on the FK column on the child tables.
February 21, 2024 at 12:04 pm
Set up data
drop table if exists #a
go
;WITH MyCTE([sessionnumber],[maxsession],[rownumber],[startdate],[startweekday],[enddate],[endweekday],[starttime],[endtime],[NomineeName])
AS
(
SELECT '1','8','1','7-Apr-24','Sunday','8-Apr-24','Monday','10:00 PM','1:00 AM','Name 1' UNION ALL
SELECT '1','8','2','7-Apr-24','Sunday','8-Apr-24','Monday','10:00 PM','1:00 AM','Name 2' UNION ALL
SELECT '1','8','3','7-Apr-24','Sunday','8-Apr-24','Monday','10:00 PM','1:00 AM','Name 3' UNION ALL
SELECT '1','8','4','7-Apr-24','Sunday','8-Apr-24','Monday','10:00...
February 21, 2024 at 11:52 am
IMHO, Steve Collins' post (with a tiny tweak (change fn.n to fn.value) in the 2nd bit of code) contains the winning entries for simplicity IF you don't mind...
February 20, 2024 at 7:10 pm
If you install this DateRange function, this gives certainly the shortest SQL if not the fastest
select CONVERT(date, d.value) Date,
...
February 20, 2024 at 3:53 pm
If you install this DateRange function, this gives certainly the shortest SQL if not the fastest
select CONVERT(date, d.value) Date,
...
February 20, 2024 at 6:18 am
CREATE VIEW must be in a batch by itself, i.e., without GOs, you could create only one view per script.
Since GOs are likely not valid, that may be what...
February 15, 2024 at 6:02 am
We use Windows Task Sheduler and SQL Agent jobs.
February 9, 2024 at 2:32 pm
Well you can test that too.
My point is... the OP hasn't identified the scenario accurately enough to even try to determine which kind of testing needs to be...
January 20, 2024 at 6:50 pm
You could/should test it, here is an example of a test:
set statistics io, time off
set nocount on
go
drop table if exists #a;
create table #a(Id int, Date date, col1...
January 19, 2024 at 3:47 pm
Viewing 15 posts - 196 through 210 (of 2,646 total)