Blog Post

Hidden code in AdventureWorks

,

I’ve playing around with AdventureWorks and managed to found some hidden code! Truly odd stuff. I’m so shocked I couldn’t wait until the time I usually post.

So if you take the x character of the first character column of each table (where x is object_id % len(column) ), merge them all together and sort based on the last int column then about half way down you will see the following:

OPTION (Bill_640kb_Gates)

I did some tests and from what I can tell if you use this option on any query it causes the memory grant to be exactly 640kb.

Not really all that useful but I’m going to keep looking and see if I can find anything else.

Filed under: DBA Humor, Microsoft SQL Server, SQLServerPedia Syndication, T-SQL Tagged: Humor

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating