Viewing 15 posts - 1,381 through 1,395 (of 2,905 total)
yep! That looks like it should work and looks more efficient than my loop approach! And easier to tune as it isn't 52 loops!
That one looks much nicer than my...
January 25, 2021 at 2:09 pm
The HEADER table will always have a value for each week There is never a case where the header table will have a NULL for a week.
In the data table,...
January 22, 2021 at 6:07 pm
Since you are using a SQL Agent Job for this, in the settings for the SQL Agent Job STEP, you can tell it to output to a file. You should...
January 22, 2021 at 4:19 pm
My opinion (I do not have SQL Server on Linux installed), I see no reason why you wouldn't be able to do that.
My expectation as to why it isn't well...
January 20, 2021 at 7:56 pm
To me, I would start by looking at the process that didn't get killed. whatever process 143 was doing, it needed an exclusive lock on pec_prod.dbo.claim and an intent exclusive...
January 19, 2021 at 9:13 pm
What happens if you do that insert on the other server without using the linked server?
The error "Cursor operation conflict" makes me think that there MIGHT be a trigger on...
January 18, 2021 at 3:21 pm
My 2 cents - if you can't change the query, you only have 2 options to improve performance:
1 - reduce the data set (ie archive data)
2 - indexes
My reading of...
January 15, 2021 at 9:57 pm
Welcome to the world of SQL Server.
So a lot of fun things you are jumping into and probably a lot of unexpected headaches. I will try to address things as...
January 15, 2021 at 9:35 pm
Seeing the entire deadlock graph would help. it is not likely that the query is deadlocking itself, but your query and another have a conflict that requires one of them...
January 14, 2021 at 8:23 pm
My approach to this is:
1 - get it set up in a test environment
2 - put the query into a transaction
3 - roll back the transaction on completion.
The above approach...
January 14, 2021 at 7:35 pm
That was an interesting question today! Learned something new!
As a bit of a sidebar, it will also seriously speed up code for things like REPLACE, especially for...
January 14, 2021 at 5:57 pm
Have you checked for memory pressure?
Alternately, is this happening on a regular basis? Like, based on what you are seeing, could it be a scheduled task? I am wondering if...
January 14, 2021 at 2:35 pm
That was an interesting question today! Learned something new!
January 14, 2021 at 2:31 pm
From a cost perspective, it will probably be cheaper to install visual studio on the developer machines rather than getting enterprise/professional licenses for all of the developers so they can...
January 12, 2021 at 7:47 pm
As far as I know, SSIS is going to be complicated to do this. You are basically going to need to build up a custom script in C# (or equivalent)...
January 12, 2021 at 4:58 pm
Viewing 15 posts - 1,381 through 1,395 (of 2,905 total)