Ing between SQL Server Type and DOTNET type

Source: Internet
Author: User
Tags dotnet

. NET Framework data provider for SQL Server

SQL Server Type . NET Framework type . NET Framework typed accessor Sqltype typed accessor
Bigint Int64 Getint64 () Getsqlint64 ()
Binary Byte [] Getbytes () Getsqlbinary ()
Bit Boolean Getboolean () Getsqlbit ()
Char String

Char []

Getstring ()

Getchars ()

Getsqlstring ()
Datetime Datetime Getdatetime () Getsqldatetime ()
Decimal Decimal Getdecimal () Getsqldecimal ()
Float Double Getdouble () Getsqldouble ()
Image Byte [] Getbytes () Getsqlbinary ()
Int Int32 Getint32 () Getsqlint32 ()
Money Decimal Getdecimal () Getsqlmoney ()
Nchar String

Char []

Getstring ()

Getchars ()

Getsqlstring ()
Ntext String

Char []

Getstring ()

Getchars ()

Getsqlstring ()
Numeric Decimal Getdecimal () Getsqldecimal ()
Nvarchar String

Char []

Getstring ()

Getchars ()

Getsqlstring ()
Real Single Getfloat () Getsqlsingle ()
Smalldatetime Datetime Getdatetime () Getsqldatetime ()
Smallint Int16 Getint16 () Getsqlint16 ()
Smallmoney Decimal Getdecimal () Getsqldecimal ()
SQL _variant Object * Getvalue ()* Getsqlvalue ()*
Text String

Char []

Getstring ()

Getchars ()

Getsqlstring ()
Timestamp Byte [] Getbytes () Getsqlbinary ()
Tinyint Byte Getbyte () Getsqlbyte ()
Uniqueidentifier Guid Getguid () Getsqlguid ()
Varbinary Byte [] Getbytes () Getsqlbinary ()
Varchar String

Char []

Getstring ()

Getchars ()

Getsqlstring ()

If you want to know the relationship with other databases. See msdn: http://msdn2.microsoft.com/en-us/library/4e5xt97a (vs.71). aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.