Viewing 15 posts - 7,021 through 7,035 (of 59,091 total)
My objective is to find out the space occupied by each record in a table ...
To what end? What will such information be used for? I ask because the...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 29, 2020 at 3:07 pm
The method that Phil posted is known as a "CROSSTAB" and was the way we did pivots long before the PIVOT operator became available. CROSSTABs are also generally faster than...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2020 at 5:57 pm
Sounds like a plan... especially the part about validation before deletion. Thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2020 at 5:53 pm
I'd say that DW in the Cloud is on the rise and is probably a safe bet.
That, notwithstanding, ask yourself what your passion is (not to mention the finances of...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2020 at 5:47 pm
I've been living with similarly named databases that have different suffixes based on the environment for a very long time. I say "living"... what I really mean is "enforcing". We...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 28, 2020 at 5:38 pm
What does the print statement yield?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2020 at 2:56 pm
Today I have a peformance issue where setting legacy cardinality estimator ON helps.
From 100s to 1 sec. Really interesting.
Heh... that's not just "help"... that's a freakin' miracle and we...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2020 at 1:45 pm
Why not write a query that finds all enabled jobs, makes a list (table of them), and then disable all jobs except for that critical one you're talking about?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2020 at 3:12 am
I think this will be a bit more safe... details are in the comments in the code
WITH cteEnumerate AS
(--==== Number each set of rows in descending...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2020 at 2:20 am
I need to delete the rows where status = 1
DELETE
FROM TestPO
WHERE Status=1;
?
From your description, it's not at all clear what records you really want deleted. Which record(s) are duplicates?...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2020 at 2:12 am
well i remember a time where we used to provide scripts, and then an explanation of what not to do....
Ah, lordy... be careful, Lowell...
It's not that I don't want...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2020 at 11:44 pm
Sorry, Brian... I don't know if that came out the wrong way but, to be sure, I didn't mean to make it sound like I was talking about you specifically. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2020 at 8:01 pm
My take on this is that if you have to ask for scripts to do this, you're probably not qualified to use the scripts. I don't mean that as a...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2020 at 6:23 pm
You should write an article on it and submit it.
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2020 at 4:39 pm
Yes, that's what I've seen on the internet. But I don't believe I have that much space in reality. To convert to GB you would divide by 256, right?
No. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 26, 2020 at 4:35 pm
Viewing 15 posts - 7,021 through 7,035 (of 59,091 total)