Sql Server deterministic user-defined function

You just need to create it with schemabinding. SQL Server will then verify whether or not it meets the criteria to be considered as deterministic (which it does as it doesn’t access any external tables or use non deterministic functions such as getdate()). You can verify that it worked with SELECT OBJECTPROPERTY(OBJECT_ID(‘[dbo].[FullNameLastFirst]’), ‘IsDeterministic’) Adding the … Read more

Why is dictionary ordering non-deterministic?

Update: In Python 3.6, dict has a new implementation which preserves insertion order. From Python 3.7, this order-preserving behaviour is guaranteed: the insertion-order preservation nature of dict objects has been declared to be an official part of the Python language spec. This is the result of a security fix from 2012, which was enabled by … Read more