﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Steve Jones / Article Discussions / Article Discussions by Author  / Hashing / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 10:47:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>OK, every other QotD has had explanations that were easy (for me) to understand. Since the question asked about the "relationship" between the 2, I assumed none since they were different variables.Answer C, deterministic and always the same, looked right and I was inclined to pick that since I knew that was true, but what does that have to do with the relationship between the two? Or am I just totally misreading the question?</description><pubDate>Tue, 07 Feb 2012 08:31:06 GMT</pubDate><dc:creator>Peter Trast</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Thank you for the questionIulian</description><pubDate>Wed, 25 Jan 2012 06:59:06 GMT</pubDate><dc:creator>Iulian -207023</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>I've never used the HashBytes() function so I learnt something new.I got it right at first because of logic thinking but the options had me wondering and I had to research a little before answering.Thank you for this QoTD.</description><pubDate>Tue, 24 Jan 2012 15:00:50 GMT</pubDate><dc:creator>codebyo</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Good question.[code="sql"]CREATE FUNCTION dbo.Hash_SHA (@data nvarchar(200))RETURNS TABLE WITH SCHEMABINDING AS RETURNSELECT HASHBYTES('SHA', @data) AS hash_valueGO-- Returns 1 (true)SELECT     OBJECTPROPERTYEX(OBJECT_ID(N'dbo.Hash_SHA', N'IF'), 'IsDeterministic');[/code]</description><pubDate>Tue, 24 Jan 2012 12:24:43 GMT</pubDate><dc:creator>Paul White</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>An easy one - thanks, Steve!</description><pubDate>Tue, 24 Jan 2012 09:26:39 GMT</pubDate><dc:creator>Revenant</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Nice question, thanks for the points!</description><pubDate>Tue, 24 Jan 2012 09:14:57 GMT</pubDate><dc:creator>BarbW</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>[quote][b]paul.knibbs (1/24/2012)[/b][hr]A non-deterministic hash function wouldn't be terribly useful, would it? ;-)[/quote]Why not?  I can think of at least one use for one. In the old days the apprentice engineer was sent to fetch a bucketful of holes, more recently people were asked to design a device driver for the GSD, and today we could assign the task of producing an effective access control system using an indeterminate hash - the [strike]victim[/strike]trainee would have exactly the same chance of carrying out this task as anyone did with the traditional spoof tasks.</description><pubDate>Tue, 24 Jan 2012 09:09:01 GMT</pubDate><dc:creator>L' Eomot Inversé</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Glad you liked the question. I was working on something else and learned a few things here.</description><pubDate>Tue, 24 Jan 2012 09:00:42 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>[quote][b]paul.knibbs (1/24/2012)[/b][hr]A non-deterministic hash function wouldn't be terribly useful, would it? ;-)[/quote]That's what I was thinking... I had to harken back to Advanced Concepts in C... at least it was considered advanced concepts in C 14 years ago.... these days this is probably beginners stuff (Hashes and the like)....Aaah age.... where'd I put my walker?</description><pubDate>Tue, 24 Jan 2012 08:41:21 GMT</pubDate><dc:creator>mtassin</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Thanks yet again Steve.</description><pubDate>Tue, 24 Jan 2012 08:39:39 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>[quote][b]Mattrick (1/24/2012)[/b][hr] ... that shows why salting your hashes is so important ... [/quote]A little bit of pepper doesn't hurt either. :hehe:</description><pubDate>Tue, 24 Jan 2012 08:29:55 GMT</pubDate><dc:creator>Dave62</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Great question that shows why salting your hashes is so important.Thanks,Matt</description><pubDate>Tue, 24 Jan 2012 08:20:27 GMT</pubDate><dc:creator>Mattrick</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>A non-deterministic hash function wouldn't be terribly useful, would it? ;-)</description><pubDate>Tue, 24 Jan 2012 07:00:57 GMT</pubDate><dc:creator>paul.knibbs</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Nice question. I had never heard of HashBytes before.</description><pubDate>Tue, 24 Jan 2012 06:00:26 GMT</pubDate><dc:creator>Ryan Barrett</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>[quote][b]Britt Cluff (1/24/2012)[/b][hr]Yeah, I got my point. Thanks for the question Steve.[/quote]Two points for today.</description><pubDate>Tue, 24 Jan 2012 05:53:51 GMT</pubDate><dc:creator>cengland0</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Yeah, I got my point. Thanks for the question Steve.</description><pubDate>Tue, 24 Jan 2012 05:47:44 GMT</pubDate><dc:creator>Britt Cluff</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>An unexpected adventure into hashing - Hash Tuesday anyone?Thanks for the stimulating question Steve.</description><pubDate>Tue, 24 Jan 2012 05:37:19 GMT</pubDate><dc:creator>Thomas Abraham</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Nice question, but quite easy as hash functions are deterministic by design.</description><pubDate>Tue, 24 Jan 2012 04:00:19 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>This issue is so obvious that i was confused!!!Good question!thanks Steve!!!!</description><pubDate>Tue, 24 Jan 2012 03:27:46 GMT</pubDate><dc:creator>rfr.ferrari</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Nice question, but the documentation linked to doesn't really explain anything!</description><pubDate>Tue, 24 Jan 2012 02:59:24 GMT</pubDate><dc:creator>Toreador</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Great question as it taught me about Hashbytes, which is something I did not know about.</description><pubDate>Tue, 24 Jan 2012 02:33:23 GMT</pubDate><dc:creator>Michael Lysons</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>This was so easy I answered right away without hesitation.  Then, I noticed it was a two point question and that gave me doubt.  Those two point questions always have some twist to them.  So, I looked up the definition of deterministic to make sure I understood the word correctly.Definition:  [i]In computer science, a deterministic algorithm is an algorithm which, in informal terms, behaves predictably.[/i]Also, for those interested, Steve had a nice post about this function on June 28, 2011:[url]http://www.sqlservercentral.com/blogs/steve_jones/2011/06/28/hashbytes-_1320_-a-t_2D00_sql-function/[/url]I got it right but I was scared to push that submit button.</description><pubDate>Tue, 24 Jan 2012 02:30:41 GMT</pubDate><dc:creator>cengland0</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Easy question - if you know the answer.(I had to look!)</description><pubDate>Tue, 24 Jan 2012 01:51:04 GMT</pubDate><dc:creator>paul s-306273</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>It seems too easy. So, I digged in deep on google and MSDN.Thanks for the qotd. :-D</description><pubDate>Tue, 24 Jan 2012 01:38:20 GMT</pubDate><dc:creator>Carlo Romagnano</dc:creator></item><item><title>RE: Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Nice question really had to dig deep into my memory to, well answer the question.</description><pubDate>Mon, 23 Jan 2012 20:53:29 GMT</pubDate><dc:creator>bitbucket-25253</dc:creator></item><item><title>Hashing</title><link>http://www.sqlservercentral.com/Forums/Topic1240597-32-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/T-SQL/87529/"&gt;Hashing&lt;/A&gt;[/B]</description><pubDate>Mon, 23 Jan 2012 20:52:11 GMT</pubDate><dc:creator>Steve Jones - SSC Editor</dc:creator></item></channel></rss>