I'm trying to favourite some resources. When I copy the URL from address bar, it's not reusable. When I paste it, it redirects for 20 sec and then lands on homepage
And when I've pinned to Dashboard (create new) it works, but then the Dashboard disappears after a while - cannot be found in the Dashboard resources, even the notification link doesn't work
I have the following table:
CREATE TABLE dbo.Cases (
CaseCaption nvarchar(255),
NickNameComputed AS (dbo.fn_ParseNickName(CaseCaption)) NOT NULL,
NickNamePersisted AS (dbo.fn_ParseNickName(CaseCaption)) PERSISTED NOT NULL
)
As you can see, I have 2 computed columns getting their valu...
I have closed this question as a duplicate as I believe it is the same issue in play (the persisted column needs to come first). As the author of the article you reference, I don't have much to add otherwise than is already stated there. If you believe your question requires a specific answer, edit it to include all the details needed to reproduce and I'll be happy to consider reopening it. Conor's commentary is not applicable for the reasons given in the duplicate Q & A. — Paul White ♦17 mins ago
I have a weird situation that I don't quite understand.
I have a table like this kinda:
CREATE TABLE dbo.cc_demo
(
id INT IDENTITY PRIMARY KEY,
up_action INT,
down_action INT,
last_action_date DATETIME
);
INSERT dbo.cc_demo ( up_action, down_action...
TL;DR: The inbox improvements we previously announced are now live (as of November 29th, 2022 13:30 UTC).
Thank you to our beta testers!
A huge thank you to moderators who helped us beta-test these inbox changes! Your feedback was invaluable, and we could not be here without you.
New features
Th...
Comparative negligence for the coffee spill onto my laptop + wireless keyboard: Cat: 60% (getting in my way) Me: 25% (knocking over coffee cup) Coffee Cup manufacturer 10% (top heavy, spill prone design) Coffee shop: 5% (using said coffee cups)
And like a true cat, he just went and barfed on the carpet
Also had an 'accident' earlier. I went into the bathroom to speak to my wife, who was cleaning her teeth. I had a glass quite full of cordial in my hand. She didn't hear me over the noise of the electric toothbrush and only noticed I was right behind her when she looked up into the mirror.
lol, story of my life. Except I'm not writing code, I'm just fixing it. The prior DBA (and I use that term with reticence) had some very convoluted stored procs with cross-database references that are rather unseemly, and undoubtedly have something surprising lurking in there.
Anchor is a brand of dairy products that was founded in New Zealand in 1886, and is one of the key brands owned by the New Zealand based international exporter Fonterra Co-operative Group. In Malaysia, Singapore and Taiwan, Fonterra uses the Fernleaf brand instead of Anchor.
== In New Zealand ==
Historically, the Anchor brand of milk products in New Zealand was owned by the New Zealand Dairy Group, which merged with Kiwi Co Operative in 2001 to form Fonterra.
As the merger would leave New Zealand with virtually no competition in the domestic dairy sector, government legislation was required for...
yeah that way if you know the module then you know the function and code without needing the loaded modules, since modules can be loaded at any address
If anyone here would be interested in supporting a proposed SE site for programming language design and implementation, follow this proposal, and check out the chat room! We need more votes on questions
@HannahVernon Worst I've seen in production code (C# though) was a method whose only line of code was if (1 == 1) return true;. The method was actively being called. To be fair, it was in a class with a literal 40,000 line comment. Actually, that was probably the worst I ever saw. Good times...
if (three > 70) { three = three + 1900; } else { three = three + 2000; }
Where "three" was the integer converted from a 2-character string input field representing the year of a date (one and two were the ints converted from the month and year input fields).
Still haunts me to this day. The guys who wrote it were Clipper programmers and I got them fired about a month or two into the job. "I never really got the hang of that C programming" was the line on the way out the door.
How about you just name your variables? Dealing with C is enough work - making your brain work extra hard is not worth it. I guess if there weren't horrible bugs in the code I desperately needed to fix so we could ship the produ\ct, I wouldn't have minded so much.
@PaulWhite maybe. maybe not. they didn’t have before and after query plans unfortunately. I sort of assumed that functions marked as not inlineable wouldn’t be inlined.
In the vein of silly and redundant code, I caught EF Core generating the following code after an INSERT today: SELECT MyIdentityColumn FROM MyTable WHERE @@ROWCOUNT = 1 AND MyIdentityColumn = SCOPE_IDENTITY(); instead of just SELECT SCOPE_IDENTITY(); lol
@AngryHacker in my example there are two Compute Scalars for the first example and only one for the second. Only the first example computes the expression (scalar function in this case). The second one simply projects the value. When I'm next at a computer, I will move this to chat because I get the feeling I will need to draw pictures. — Paul White ♦1 hour ago