Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binary type field and searches
Message
De
27/01/2014 14:25:18
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Binary type field and searches
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01592459
Message ID:
01592459
Vues:
46
I have defined a field of type Binary(16). The field holds a byte value.

If I do a select command, SqlParameter.SqlDbType will return Binary. However, if I do an update command, SqlParameter.SqlDbType returns VarBinary.

Can someone explain me why this is like that?

I need to have a universal way of recognizing the type. Should I always add my parameter with a type VarBinary so to end up with the same recognition at either a select or update command?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform