How can I convert the SQL data types to csharp system types..

C

Champika Nirosh

Hi,

I want to convert ms sql data types to c# system types..

as an example

bit >>> System.Boolean
money >>> System.decimal

etc

Thanks,
Nirosh.
 
G

Guest

Hi,

Take a look at System.Data.SqlTypes under MSDN library. There is a list of
SQL server types and their corresponding SqlTypes. Then the list of SqlTypes
have member definitions which will show you how to extract the .NET typed
value from the Sql type.

HTH,
Chris.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top