Viewing 15 posts - 4,081 through 4,095 (of 59,087 total)
That post is now more than 2 months old. The moment has kinda been lost. 😉
To summarize, I was asking you to outline the exact steps and code you were...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 18, 2022 at 1:46 am
I have to admit that I'm a bit gobsmacked at the number of people (50% at the time of this posting) that think there's such a thing as DATEADD(time,.....
--Jeff Moden
Change is inevitable... Change for the better is not.
January 17, 2022 at 7:13 pm
Heh... it's a real shame that MS didn't follow the ISO/ANSI standards when it came to the "new" (now old) DATE, TIME, and DATETIME2 datatypes and it's also a shame...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 17, 2022 at 3:40 am
I'm not sure if I had any declared goals even on New Year's day except to quit smoking and that NEVER worked. I usually declare goals when I realize that...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 16, 2022 at 5:46 pm
All that being said, I'm scared to death of moving from 2016 to 2019 next year and MS has done nothing to quell the ongoing fears associated with...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 16, 2022 at 5:39 pm
Jeffrey Williams wrote:Still no notification emails - at least I have not received any.
Same here as of this instant.
Yeah... absolutely confirmed. I'm definitely not getting any email notifications.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 16, 2022 at 2:55 am
RBAR (pronounced "ree-bar", Row By Agonizing Row) development.
Heh... I kinda knew that. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
January 16, 2022 at 2:52 am
How do we add leap years in the following query along with the month of February?
CASE WHEN SUBSTR(RELEASE_DATE,1,4)<1900 OR SUBSTR(RELEASE_DATE,1,4)>9999 THEN '1900-01-01' WHEN SUBSTR(RELEASE_DATE,6,2)>12 THEN '1900-01-01' WHEN SUBSTR(RELEASE_DATE,9,2)>31 THEN...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 15, 2022 at 5:05 pm
So, JaybeeSQL... enquiring minds want to know... why have you essentially deleted several posts with no explanation? You made the lessons taught in each post that follows one of your...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 15, 2022 at 4:53 pm
Instead of using a CASE expression (as you were trying) - or stacked OR's: WHERE @mDepth > iif(@tDepth = 0, -1, @tDepth)
Consider: @mDepth >= 0 is equivalent to...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 15, 2022 at 4:46 pm
Nice article, Kathi.
Your description of "Some of the most problematic T-SQL code I’ve seen" is a perfect description for simple "RBAR".
And, I agree with Rick. The way SQL is taught...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 15, 2022 at 4:17 pm
Still no notification emails - at least I have not received any.
Same here as of this instant.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 14, 2022 at 11:28 pm
Like I said earlier, the trouble with doing a single big shrink is you have no way of telling how far it's gone nor how much is left to do. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 14, 2022 at 4:41 am
@Ant-Green thank you for the tip.
The code:
-- Shrink the mdf file.
DBCC SHRINKFILE(N'FileName', 0, TRUNCATEONLY);
GO
After one of the replies I decided to shrink database (not file), using...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2022 at 12:30 am
I am trying to copy MDF and LDF file from one server to another.
Initial On primary the DB was on C drive and on new server I was trying...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2022 at 12:09 am
Viewing 15 posts - 4,081 through 4,095 (of 59,087 total)