Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting value from Binary field
Message
De
27/01/2014 13:33:18
 
 
À
27/01/2014 12:45:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01592445
Message ID:
01592455
Vues:
42
>I think you have to convert the byte array (loDataParameterSQLClient.Value) to hex ?
>
>
>declare @Tmp table
>(	Id int IDENTITY(1,1) NOT NULL,
>	MD5 binary(16) not null
>);
>
>insert into @Tmp (MD5) values (0xB3C54EFB6C02017046905007293650B1);
>insert into @Tmp (MD5) values (0xB3C54EFB6C02017046905007293650B2);
>
>declare @MD5 Binary(16);
>SET @MD5 = 0xB3C54EFB6C02017046905007293650B2;
>
>
>select * from @Tmp where (MD5 = @MD5);
>
If I put 0x + loDataParameterSQLClient.Value, it will end up with 0xSystem.Byte[].
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform