Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataType for VarChar
Message
De
31/03/2014 17:52:07
 
 
À
31/03/2014 17:23:37
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01597800
Message ID:
01597810
Vues:
24
>>There is SqlDbType.VarChar data type, but System.String type. So, for all char data it will be System.String type.
>
>Well, this causes a problem, as when I use a database which is not bound to my data dictionary, I need to rely on what the DataTable will return. So, I need to be able to differentiate between a string and a varchar.

not knowing what kind of DD you use, I'd argue that you should code it in a way that if the runtime usage cannot rely on a explicit DD, such info should be loaded dynamically to be always available to your code - via SqlDataReader.GetDataTypeName() for instance
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform