Viewing 15 posts - 3,226 through 3,240 (of 59,098 total)
And why on Earth are you convert IDs to VARCHAR(MAX)?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:24 pm
So is it a text or image file or a combination or??? What kind of file is it?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:21 pm
Sorry for the confusion. Yes, as the data stands right now the entire column should be populated with an *. If the department column included 0001 and 0002, then...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:19 pm
Hi
I have data like below. Brands can be dynamic
Loc1 Brand Qty Value
Loc1 ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 10, 2022 at 6:17 pm
Thanks for the feedback, Kenneth.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:50 am
Guess how my f$%^ing Saturday has started too.
You mean you set your alarm on to go off on a Saturday morning 😀 😀 😀
I won't bore you with how...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:47 am
I know little about SSIS but I'm sure there's a setting for the line terminators.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:42 am
As a bit of fun, I ran across this picture on LinkedIn about a week ago. I laughed so hard it hurt. 😀

--Jeff Moden
Change is inevitable... Change for the better is not.
July 9, 2022 at 3:37 am
Great, thanks! That does the trick perfectly.
Be careful... it only works for a single instance on any one row. If there are two instances, it only takes care of...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2022 at 8:09 pm
I don't know... I don't work with anything having to do with Azure.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2022 at 7:55 pm
For 1, I tried a CTE to create a Month lookup table. No hardcoded string values
;WITH CTE_Months
AS
(
SELECT GETDATE() AS TheDate, LEFT(DATENAME(mm,GETDATE()),3) AS [MonthAbr],MONTH(GETDATE()) AS MonthOrder
UNION ALL
SELECT...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 8, 2022 at 7:45 pm
Passed the initial screening and now have a SQL interview. Dabbled with SQL for a few months now but there are a lot of resources that I can use...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 7, 2022 at 8:46 pm
If "silly" people are writing such queries -- and no one in IT can tell you to ignore them ...
My problem is that those two groups are frequently the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 7, 2022 at 2:51 am
How fix SQL performance issues? Start by checking your wait stats
1-Ensure your TempDB database is configured optimally.
2-Make sure you're running index maintenance frequently.
3-Implement indexes that provide a benefit to...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 7, 2022 at 2:44 am
select cast(year(v.sort_mo) as smallint), input_str.mo
from (values ('Jan'),('Feb'),('Mar'),
('Apr'),('May'),('Jun'),
...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 6, 2022 at 2:50 pm
Viewing 15 posts - 3,226 through 3,240 (of 59,098 total)