Viewing 15 posts - 1,261 through 1,275 (of 59,066 total)
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,...
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...
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! ...
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...
July 19, 2023 at 7:12 pm
posted code
Heh... you posted while I was writing the code. Thanks, Jonathan.
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...
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.
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...
July 19, 2023 at 5:03 pm
Interesting article, thank you. The error returned 1 for the state.
Our dev team updated the code that generates the EF query, and that has resolved the problem (so I...
July 19, 2023 at 4:05 pm
Thank you very much, it works
Thank you for the feedback!
July 18, 2023 at 11:41 pm
The SQL code is not all uppercase when viewed on my browser (Chrome):
Interesting. Thanks for the feedback, Phil.
July 18, 2023 at 11:40 pm
The last group of data in your example data looks like this...
,(2,7, 210,1)
,(2,8, 211,1)
,(2,9, 212,1)
,(2,10,212,-1)
,(2,11,211,-1)
,(2,12,212,-1) --<---<<< LOOK HERE!
Shouldn't that last line have an Order_ID of 210 instead...
July 18, 2023 at 3:48 am
Deleted... I misread the problem.
July 18, 2023 at 1:26 am
The company hired him was looking for forecasting. I'm not sure how it ended, but I know the company was upset with him.
Didn't they interview him? Given the choice,...
July 18, 2023 at 12:54 am
Jeff, I honestly don't remember what my answer was. but I'll add this: Today my answer would be :
"If I ever get out of this silly-assed meeting I'll go...
July 18, 2023 at 12:49 am
Viewing 15 posts - 1,261 through 1,275 (of 59,066 total)