Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #1770
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Erland Sommarskog <esquel@sommarskog.se> |
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: Varbinary and nvarchar problem |
| Date | Fri, 20 Jun 2014 16:16:07 +0200 |
| Organization | Erland Sommarskog |
| Lines | 18 |
| Message-ID | <XnsA352A57E3723Yazorman@127.0.0.1> (permalink) |
| References | <lnvbvt$ck3$1@dont-email.me> <XnsA351EB263B565Yazorman@127.0.0.1> <lnvlt4$nnk$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mx05.eternal-september.org; posting-host="0c412830dbc354c08130c47cfccdbc83"; logging-data="10573"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5zFvGk7D+CIQcmoJRgTul" |
| User-Agent | Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) |
| Cancel-Lock | sha1:df0djtTiOpliltWRsUddlqDWpMQ= |
| Xref | csiph.com comp.databases.ms-sqlserver:1770 |
Show key headers only | View raw
Shelly (sheldonlg@thevillages.net) writes: > Anyway, I have the solution. It is to enclose the HASHBYTES stuff with > the following: > > SUBSTRING(master.dbo.fn_varbintohexstr( hashbytes calculation ), 3, 32). > > The result is a 32 character hex string put into the tracking table. > If you are on SQL 2008, use convert(varchar(32), hashbytes, 2) instead, as this is a documented and supported way to get a hex string. -- Erland Sommarskog, Stockholm, esquel@sommarskog.se
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
Varbinary and nvarchar problem Shelly <sheldonlg@thevillages.net> - 2014-06-19 15:00 -0400
Re: Varbinary and nvarchar problem Erland Sommarskog <esquel@sommarskog.se> - 2014-06-19 23:06 +0200
Re: Varbinary and nvarchar problem Shelly <sheldonlg@thevillages.net> - 2014-06-19 17:49 -0400
Re: Varbinary and nvarchar problem Erland Sommarskog <esquel@sommarskog.se> - 2014-06-20 16:16 +0200
Re: Varbinary and nvarchar problem Shelly <sheldonlg@thevillages.net> - 2014-06-21 09:17 -0400
Re: Varbinary and nvarchar problem Shelly <sheldonlg@thevillages.net> - 2014-06-23 09:49 -0400
Re: Varbinary and nvarchar problem Shelly <sheldonlg@thevillages.net> - 2014-06-23 10:27 -0400
Re: Varbinary and nvarchar problem Erland Sommarskog <esquel@sommarskog.se> - 2014-06-23 21:33 +0200
Re: Varbinary and nvarchar problem Shelly <sheldonlg@thevillages.net> - 2014-06-23 16:35 -0400
Re: Varbinary and nvarchar problem Erland Sommarskog <esquel@sommarskog.se> - 2014-06-24 07:19 +0000
csiph-web