Viewing 15 posts - 1,276 through 1,290 (of 59,072 total)
One of the things that people seem to forget it that it was almost 2023 by the time 2022 came out. It may have gone past the "plan the funding...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2023 at 11:06 pm
Thank you so much, Jeff! I was looking for something like xp_DirTree. Will try it out. Thanks.
Although it's more than a decade old, good things don't need to change...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2023 at 10:48 pm
Hi everyone,
I have a directory of many csv files such as
C:\Temp\NP-001.csv
C:\Temp\NP-002.csv
C:\Temp\NP-003.csv
In each csv file, there are 5 columns: Name, DOB, MemberID, Address, Email
We need to somehow loop through each...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2023 at 7:24 pm
But it blows up when I try:
Select * From Query1 Where tmpResult1 = 'D'
That, good Sir, is what I'm talking about being the problem. That is...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2023 at 7:13 pm
I still think it's screwy that SQL Server made a query plan that does column computations BEFORE removing rows according to conditions in the Where clause.
In calculated columns...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2023 at 2:40 pm
I think you may have correctly identified the problem... Someone who is more knowledgeable about PoSh than I may have a bit of magic that I don't know about but...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2023 at 12:36 am
If I'm reading all of this correctly, another issue with filtering the calculated columns of a view is that all of the rows must first be materialized and then the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2023 at 12:27 am
Here's the updated post that actually takes advantage of JSON. No need for TRIM() or STRING_SPLIT() functions because the source is in a proper JSON ARRAY format. Again,...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2023 at 10:22 pm
All good reasons for why I have a serious dislike for XML, JSON, and a couple of other things when it comers to SQL.
Thanks for the info, Jeffrey. And, I'm...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2023 at 9:19 pm
You may want to validate the return value from OPENJSON - I believe it returns an NVARCHAR and that could have a significant impact on performance.
Damn! Awesome catch, Jeffrey! ...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2023 at 8:07 pm
@Ric,
Ok... so I'm only 14 years late in seeing this the first time. 😀
I've not needed to work with JSON up until now. It's gotten out of hand in our...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2023 at 7:12 pm
posted code
Heh... you posted while I was writing the code. Thanks, Jonathan.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2023 at 5:58 pm
Here's the updated post that actually takes advantage of JSON. No need for TRIM() or STRING_SPLIT() functions because the source is in a proper JSON ARRAY format. Again, this eliminates...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2023 at 5:55 pm
p.s. I seem to remember a way to do this directly with JSON and not have to do the STRING_SPLIT() and TRIM() things. I'm looking for it.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2023 at 5:38 pm
[EDIT]: DON'T USE THIS METHOD. I left the post here to show you that I'm actually quite the rookie at JSON. There's no need for the complexity of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 19, 2023 at 5:03 pm
Viewing 15 posts - 1,276 through 1,290 (of 59,072 total)