Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataType for VarChar
Message
From
31/03/2014 17:52:07
 
 
To
31/03/2014 17:23:37
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597800
Message ID:
01597810
Views:
23
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform