Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Data Type From SQL
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01516961
Message ID:
01516984
Views:
47
>>>>>Is there a way in .Net to convert a given SQL data type to a .Net data type?
>>>>
>>>>Can you give the context of your question? From a DataReader?
>>>
>>>Sorry, I'm working on a data conversion tool...
>>>
>>>I want to pass in a SQL data type, either as a string or an object, and get back the correspondiong C#/.Net datatype.
>>
>>Good luck. Not sure you can, but will watch this thread with interest. You can probably build your own function to do this.
>
>II started a method with a switch, then thought I'd chck. I guess I'll keep on it.

An alternative approach: http://www.koders.com/csharp/fid81BF77665BE889E51EB9B3861C9BFBDE4A1A7AC5.aspx
(But I'd re-write the Find methods)
Previous
Reply
Map
View

Click here to load this message in the networking platform