Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #1778

Re: Varbinary and nvarchar problem

From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver
Subject Re: Varbinary and nvarchar problem
Date 2014-06-24 07:19 +0000
Organization Erland Sommarskog
Message-ID <XnsA3565EE28A637Yazorman@127.0.0.1> (permalink)
References (3 earlier) <XnsA352A57E3723Yazorman@127.0.0.1> <lo9b9q$p9g$1@dont-email.me> <lo9dg7$8bf$1@dont-email.me> <XnsA355DB51B5C3CYazorman@127.0.0.1> <loa327$lo5$1@dont-email.me>

Show all headers | View raw


Shelly (sheldonlg@thevillages.net) writes:
> The three pieces that make up the content of what is to in the HASHBYTE 
> are all varchar strings.  There are no integer values.  For example, one 
> record has 'C00001', 'COMERCIAL' and 'S' as the three pieces, so the 
> HASHBYTE is of 'C00001COMERCIALS'.  The result of the HASHBYTE is a 
> varbinary, but the convert should be doing an explicit conversion of it 
> to varchar(32).
 
Well, as long as you don't share the code you are using there is not much
more than I or anyone else can say. 


-- 
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Find similar


Thread

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