Viewing 15 posts - 181 through 195 (of 380 total)
why are you dropping and recreating the indexes? what are you trying to accomplish with it?
(for Phil - OP has DROP_EXISTING = ON so indexes are there already while...
September 24, 2023 at 9:19 pm
Are you saying that this proc runs slower in SSIS than it would if you were running it from SSMS?
Have you determined which statement is the slow one (I...
September 24, 2023 at 9:10 pm
and what have you googleed and read on the documentation about moving datafiles? there are plenty of examples and documentation is rather clear on what to do.
Internet has a...
September 8, 2023 at 6:24 pm
It would appear that a simple definition of what you want is as follows:
Return the last weekday of the month (regardless of any holidays).
To help others understand...
July 10, 2023 at 12:10 am
As you have not provided the logic for your 'business month end' calculation, I'm not sure how you are expecting anyone to calculate it.
EOMONTH() gives you end of month...
July 10, 2023 at 12:07 am
maybe this but not guaranteed.
drop table if exists #TEMP1;
drop table if exists #TEMP2;
drop table if exists #TEMP3;
select distinct T1.QUOTE_DATE
into #TEMP1
from dbo.OptionsEOD T1
CREATE CLUSTERED INDEX #CI_TEMP1 ON...
July 3, 2023 at 11:50 pm
try the following code.
and then give us the actual explain plan for both this code and your code.
drop table if exists #TEMP1;
drop table if exists #TEMP2;
select...
July 3, 2023 at 6:12 pm
not much you can do about that query (which is the version I gave you) - the nature of the query does not really allow for pre-filtering or use...
June 23, 2023 at 1:50 am
option 1 is incorrect - just discard it.
can you give the plan for the second? was expecting it to be a bit faster than that.
no problem
here you...
June 18, 2023 at 3:42 am
frederico_fonseca wrote:option 1 is incorrect - just discard it.
can you give the plan for the second? was expecting it to be a bit faster than that.
no problem
here you go
Did...
June 9, 2023 at 2:55 am
option 1 is incorrect - just discard it.
can you give the plan for the second? was expecting it to be a bit faster than that.
no problem
here you go
June 6, 2023 at 5:24 pm
thanks for all the replies. much appreciated.
Some background...I have been making changes to a stored proc. I made a change (not sure exactly what tho) that resulted in incorrect query...
June 6, 2023 at 4:44 pm
regarding your last query (from the second plan). two options below
option 1 is just a adjustment of your original query - does same thing but with 1 less join....
June 6, 2023 at 3:29 pm
can you try this slight variation of my second example and give runtime and plan as well.
drop table if exists #weeklastday;
drop table if exists #temp1;
select distinct...
June 5, 2023 at 3:54 pm
that plan is from you version of the change e.g. where you still keep the dateadd and your temp table does not filter or change the expiration date.
can you...
June 5, 2023 at 5:40 am
Viewing 15 posts - 181 through 195 (of 380 total)