• (转)SQL Server Data Types and Their .NET Framework Equivalents


    SQL Server data type          CLR data type (SQL Server)    CLR data type (.NET Framework)  
    varbinary                     SqlBytes, SqlBinary           Byte[] 
    binary                        SqlBytes, SqlBinary           Byte[] 
    varbinary(1), binary(1)       SqlBytes, SqlBinary           byte, Byte[]
    image                         None                          None

    varchar                       None                          None
    char                          None                          None
    nvarchar(1), nchar(1)         SqlChars, SqlString           Char, String, Char[]    
    nvarchar                      SqlChars, SqlString           String, Char[]
    nchar                         SqlChars, SqlString           String, Char[]
    text                          None                          None
    ntext                         None                          None

    uniqueidentifier              SqlGuid                       Guid
    rowversion                    None                          Byte[] 
    bit                           SqlBoolean                    Boolean
    tinyint                       SqlByte                       Byte
    smallint                      SqlInt16                      Int16 
    int                           SqlInt32                      Int32 
    bigint                        SqlInt64                      Int64

    smallmoney                    SqlMoney                      Decimal 
    money                         SqlMoney                      Decimal 
    numeric                       SqlDecimal                    Decimal 
    decimal                       SqlDecimal                    Decimal 
    real                          SqlSingle                     Single 
    float                         SqlDouble                     Double 

    smalldatetime                 SqlDateTime                   DateTime 
    datetime                      SqlDateTime                   DateTime

    sql_variant                   None                          Object 
    User-defined type(UDT)        None                          user-defined type    
    table                         None                          None
    cursor                        None                          None
    timestamp                     None                          None
    xml                           SqlXml                        None
  • 相关阅读:
    关于webpack升级过后不能打包的问题;
    数组的一些理解
    .NET(C#):使用Win32Exception类型处理Win32错误代码
    托管代码和非托管代码
    托管DLL和非托管DLL的区别
    C#实现Dll(OCX)控件自动注册的两种方法(转)
    Com组件和Dll文件区别
    C#创建COM组件
    ajaxFileUpload插件上传文件 返回 syntaxError :unexpected token
    jquery插件--ajaxfileupload.js上传文件原理分析
  • 原文地址:https://www.cnblogs.com/buhaiqing/p/1555482.html
Copyright © 2020-2023  润新知