Viewing 15 posts - 436 through 450 (of 1,403 total)
Now that the Briefcase in SSC actually works I'm able to find old bookmarked threads. This was a good one
https://www.sqlservercentral.com/forums/topic/replace-table-with-staging_table-approach
March 30, 2022 at 5:15 pm
When there is no name provided for an array you could use OPENJSON without specifying a schema and then refer to the array as '[value]' (with appropriate table/tvf alias'ing) in...
March 28, 2022 at 4:27 pm
A default value doesn't do an update once the entry is populated by a default and it needs to change with every action.
The trigger "prevents" (assuming READ COMMITTED only)...
March 28, 2022 at 1:27 pm
Speculating regarding temporal tables what if you defined ORIGINAL_LOGIN() as the default value of a column in the base table and use a trigger to prevent it from being overridden...
March 28, 2022 at 12:01 am
Here's the screenshot! Congratulations again Jeff Moden and THANK YOU for everything 🙂

March 16, 2022 at 5:31 pm
Awesome job, Steve!
Thank you Professor Moden! Congratulations in advance for passing the 1,000,000 point milestone. I appreciate and learn from you all the time and I hope you get...
March 16, 2022 at 4:32 pm
Sure, the function code is below. It was taken from this article
CREATE FUNCTION [dbo].[fnTally]
/**********************************************************************************************************************
Jeff Moden Script on SSC: https://www.sqlservercentral.com/scripts/create-a-tally-function-fntally
**********************************************************************************************************************/
...
March 16, 2022 at 4:14 pm
In a CTE you could select the date difference between the CreatedDate and the LEAD(CreatedDated, 1, default) where the default is the current month (+1 to deal with boundary crossing). ...
March 16, 2022 at 2:38 pm
Just a quick venting/raging......Entity frameworks using code first is the spawn of the devil himself. It is seriously one of the worst anti-patterns I have ever seen. Thanks I...
March 10, 2022 at 5:26 pm
It's another case of no sample data. If the hierarchyid's are conventionally formed using '/' delimiters then they can be ordinally split. One way to derive the original adjacency could...
March 6, 2022 at 3:52 am
I have a fellow that's trying to resolve some performance issues in a HierarchyID-based table. I just don't use HierarchyID because I've found or made better ways to work...
March 5, 2022 at 2:02 pm
SSC is under massive attack from rogue travel agents 🙂
March 3, 2022 at 12:46 pm
Wading in without any knowledge of Azure Data Factory at all... it seems like maybe the system is expecting a "pagination_token" along with the initial request? You're telling it how...
March 2, 2022 at 2:07 pm
Why does a single datetime of a "mess up" apply to every vehicle worked on subsequently during that day? What if the mistake was made at 11:59PM there's only 1...
March 2, 2022 at 1:24 pm
Seems similar to the other recent question
with parts_cte(partid) as (
select partid
from #temp
group by partid
...
February 28, 2022 at 3:33 pm
Viewing 15 posts - 436 through 450 (of 1,403 total)