what is the suitable .NET datatype for SQL Server 2000 datatype?

Hi Everyone,

I have a SQL Server 2000 table named as Transfer and its field are datetime, & money datatype. Now I want to write dataset in VC++ .NET to add row to my table. Which datatype is suitable in .NET for SQL datatype which I created.

Thanks in Advance
Jose




Answer this question

what is the suitable .NET datatype for SQL Server 2000 datatype?

  • djs1

    Take a look at the System.Data.SqlTypes namespace. All data types of SQL Server can be found there, and the classes provide a mapping between the CLR and the SQL data types.
    A datetime field maps of course to System.DateTime, and money is mapped to System.Decimal.

  • what is the suitable .NET datatype for SQL Server 2000 datatype?