Viewing 15 posts - 1 through 15 (of 295 total)
I just updated all the stats for this able and still the same behavior.
December 19, 2023 at 5:50 pm
code inside the function
CREATE FUNCTION [dbo].[fnDate2int] ( @Date DATE )
RETURNS INT
AS
BEGIN
DECLARE @IntDate INT = CAST(CONVERT(VARCHAR(8),@Date,112) AS INT)
RETURN @IntDate
December 19, 2023 at 5:23 pm
IDIDAT is declared as INT in the table
DECLARE @StartDate DATE = '9/5/2023'
DECLARE @EndDate DATE = '9/5/2023'
DECLARE
@IntStartDate INT = dbo.fnDate2int(@StartDate)
,@IntEndDate INT = dbo.fnDate2int(@EndDate)
query 1
SELECT
FROM table il
WHERE
il.IDIDAT between @IntStartDate AND @IntStartDate
query 2
SELECT
FROM ...
December 19, 2023 at 5:19 pm
Thanks. Question is do you really have room for improvement, when you your table is large as 176M rows and your view on top of that table returns everything without...
May 12, 2023 at 4:10 pm
so code is just a view on top of this table, that does select * from this table without any filter.
May 11, 2023 at 4:26 pm
Memory shouldn't be an issue. 476 GB for SQL instance.
May 10, 2023 at 9:23 pm
try this one as this one is from prod
May 9, 2023 at 10:03 pm
is this script safe to run on production?
May 9, 2023 at 9:52 pm
Here you go.
May 9, 2023 at 8:54 pm
Thank you. That works great. Now, I have another Challange. I’m calling API to get the json file (string) and loading json string into SQL table in a column nvarchar(max)....
April 20, 2023 at 2:01 am
Will delete on colunstore index takes longer than Update? Or both will take longer?
March 27, 2023 at 11:10 am
Soultuion DesNorton gave worked like a champ. Thank you so much!!
August 18, 2022 at 6:26 pm
Viewing 15 posts - 1 through 15 (of 295 total)