Viewing 15 posts - 226 through 240 (of 2,648 total)
duplicate
January 5, 2024 at 12:55 pm
I would initially try creating the temporary tables (#potential_dups and #person_list) before you insert into it and create the CLUSTERED indexes inx_potential_dups_temp1 and index idx_person_1 instead of NONCLUSTERED, and create...
January 5, 2024 at 12:55 pm
To resolve this issue, you need to ensure that the ANSI_NULLS option is set to ON for the table 'eligibility'. You can modify the table definition to set the ANSI_NULLS...
January 4, 2024 at 3:51 pm
I would just shrink the data files and rebuild the indexes including the clustered indexes.
January 4, 2024 at 3:12 pm
If you want to make the query you've given as fast as possible to return the rows you could use a schema bound view:
-- Create the view...
January 4, 2024 at 1:16 pm
Indexes on [dbo].[eligibility]([member_id]) INCLUDE ([eligibility_id])
and [memberphonelookup]([member_id])
January 3, 2024 at 10:14 pm
Is it really returning all the rows in the table? If so then why has the OP got a where clause?
January 2, 2024 at 4:32 pm
How many rows does the query return?
An obvious solution is to create an index on Final_date and include columns (column1, column2... column18)
You might be able to get away with just...
January 2, 2024 at 12:06 pm
I expected that if I use pagination it will only load 1st page for me, which should be very quick. And load the rest pages only if users request...
January 1, 2024 at 5:10 pm
Instead of applying the recompile at the procedure level, you can apply it at the query level within the stored procedure using the OPTION (RECOMPILE) hint. This way, only specific...
December 28, 2023 at 10:07 am
Are you creating a temp table i.e. one that begins with a hash (#) or are you using a permanent table name?
December 28, 2023 at 9:26 am
Yes, that's a bit shorter and generally more efficient. I'm wondering if there were a lot more that 12 items per customer and the right indexes on the...
December 27, 2023 at 4:37 pm
;WITH CTE AS
(
SELECT DISTINCT CustomerCode
FROM myTable
)
SELECT B.*
FROM CTE A
CROSS APPLY(SELECT TOP(12) *
...
December 21, 2023 at 9:07 pm
;WITH CTE AS
(
SELECT DISTINCT CustomerCode
FROM myTable
)
SELECT B.*
FROM CTE A
CROSS APPLY(SELECT TOP(12) *
...
December 21, 2023 at 5:53 pm
Viewing 15 posts - 226 through 240 (of 2,648 total)