• Sean Lange (8/27/2013)


    ningaraju.ne 46825 (8/27/2013)


    Actually we have used newid() in order by clause to do shuffling.But My Manager is asking me to get the algorithm used for that clause and need to compare with linear programming algorithm

    Well unless your boss has some connections at Microsoft you aren't going to get the logic. This code is compiled into the engine and you don't have the opportunity to view the source code. Does this same manager routinely ask the .NET team to "retrieve" the logic used in the .NET framework for generating a guid?

    +1. I haven't seen any internal algorithms documented well and I doubt you'll see this one.