November 4, 2015 at 10:07 am
I know nothing about hash on a table but I need a lot of help on this. Here what I want to accomplish, I have table that has 15 column one of the columns is ClientID that is about max 45char. I want to be able to hash on the column and return the hash value in a new column call ClientID_Hash. Is this possible? If so can someone please lead me in the right direction.
Thank you,
Kevin
November 4, 2015 at 10:16 am
kbnyny (11/4/2015)
I know nothing about hash on a table but I need a lot of help on this. Here what I want to accomplish, I have table that has 15 column one of the columns is ClientID that is about max 45char. I want to be able to hash on the column and return the hash value in a new column call ClientID_Hash. Is this possible? If so can someone please lead me in the right direction.Thank you,
Kevin
It is not at all clear what you are trying to do here. Maybe you want HASHBYTES???
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
November 4, 2015 at 4:16 pm
kbnyny (11/4/2015)
I know nothing about hash on a table but I need a lot of help on this. Here what I want to accomplish, I have table that has 15 column one of the columns is ClientID that is about max 45char. I want to be able to hash on the column and return the hash value in a new column call ClientID_Hash. Is this possible? If so can someone please lead me in the right direction.Thank you,
Kevin
You're trying to hoe a row with a hammer. There are much better ways to do what you want but, let me ask, why do you think the ClientID column is a problem? Are you experiencing a performance problem or ???
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply