Viewing 15 posts - 6,751 through 6,765 (of 59,091 total)
I have a Use case like.
We migrated around 1000 millions of rows into around 5-6 tables.
client requirement frequently change to update some columns. Is there any best way to...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 11:20 pm
So I am trying to get the datediff for parameters selected, even though the 2 dates could span 60 days, for an example I have 2 dates available(2018-01-05 11:08:00)...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 11:17 pm
Congratulations on the improvement you made but I don't believe your job is complete yet. My biggest concern would be to find out exactly why a single package is consuming...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 11:12 pm
There is a job that runs every 2 hours, it grabs the last 10k records, truncates and loads those records back with fresh new IDs.
To what end? What is...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 11:08 pm
I was reading one of Brent Ozar's posts about SSMS, and he was talking about "never use the sa/admin account unless you need to", so I was wondering if...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 11:05 pm
Wouldn't it be easier to take a snapshot of sys.dm_db_index_usage_stats from one day till the next and do a comparison? The added benefit here is that it includes indexes from...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 11:00 pm
CREATE TABLE dbo.t
(
TxtVARCHAR(8000)
);
INSERT dbo.t (Txt) VALUES
('A[CL]'),
('B[HQUW]'),
('C[1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ]'),
('D2'),
('E[1]');
GO
WITH Result
AS
(
SELECTLEFT(Txt, 1) AS Constant,-- all strings with [...]
SUBSTRING(Txt, 3, 1) AS Variable,
SUBSTRING(Txt, 4, LEN(Txt) - 4)...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 7:36 pm
Strong second to Grant's post.
I'll also add that partitioning a table can actually make performance worse like it did for me but was acceptable because of what I was trying...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 7:10 pm
I've been through this more times than I can shake a stick at. With the utmost respect for those that provided them, none of the solutions offered are SARGable and...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 1:25 am
But, yes, depending in which way your index is disorganised, REORGANIZE can mean a lot of operations, as it performs a bubble sort of the file.
I don't think...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2020 at 1:11 am
Ah, nostalgia. I miss BYTE magazine.
And "Computer Shopper".
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2020 at 1:39 pm
Actually, 100% can be generated using a little dynamic SQL, sys.columns, and sys.indexes. I wrote some code for work that people are using. I'll see if I can find the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2020 at 12:56 pm
Man, thanks for the example, Erland. Great stuff and timely, as well. We just installed some 3rd party software where they required the database the software uses to be snapshot...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2020 at 4:12 pm
Erland... Before I spend a lot of time looking for it, do you have a link handy that talks about that problem?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 18, 2020 at 11:25 pm
Another thing, I that I did not observe until today, which is a quite important difference is this: If you have any form or snapshot enabled (and that includes...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 18, 2020 at 11:19 pm
Viewing 15 posts - 6,751 through 6,765 (of 59,091 total)