这段时间学习SQL Server CLR编程,但是SQL CLR编程,里面所使用的数据类型为CLE TYPE,它多少与 Db TYPE有些区别,在网上找到一个列表http://geekswithblogs.net/manjunath.k/archive/2013/09/11/sqldbtype-to-clr-type.aspx,转载于此,方便查阅。

SqlDbType CLR Type
SqlDbType.Binary typeof(byte[])
SqlDbType.Image 
SqlDbType.Timestamp 
SqlDbType.VarBinary
SqlDbType.Char typeof(string)
SqlDbType.NChar
SqlDbType.NText
SqlDbType.NVarChar
SqlDbType.Text
SqlDbType.VarChar
SqlDbType.Xml
SqlDbType.DateTime typeof(DateTime?)
SqlDbType.SmallDateTime
SqlDbType.Date
SqlDbType.Time
SqlDbType.DateTime2
SqlDbType.BigInt typeof(long?)
SqlDbType.Bit typeof(bool?)
SqlDbType.Decimal typeof(decimal?)
SqlDbType.Money
SqlDbType.SmallMoney
SqlDbType.Float typeof(double?)
SqlDbType.Int typeof(int?)
SqlDbType.Real typeof(float?)
SqlDbType.UniqueIdentifier typeof(Guid?)
SqlDbType.SmallInt typeof(short?)
SqlDbType.TinyInt typeof(byte?)
SqlDbType.Variant typeof(object)
SqlDbType.Udt
SqlDbType.Structured typeof(DataTable)
SqlDbType.DateTimeOffset typeof(DateTimeOffset?)

下面内容于2015-03-30 15:10分补充:

Mapping CLR Parameter Data

https://msdn.microsoft.com/en-us/library/ms131092.aspx

最新文章

  1. 【十大经典数据挖掘算法】AdaBoost
  2. ASP.Net请求处理机制初步探索之旅 - Part 2 核心
  3. 软件公司为何要放弃MongoDB?
  4. C指针-const char* p到底是什么不可以改变
  5. [Unity] 2D开发学习教程
  6. Web前端开发基础 第四课(CSS小技巧)
  7. Java中Set集合的使用
  8. PHP date和time
  9. myeclipse安装本地maven fastdfs_client.jar
  10. 一步步写STM32 OS【二】环境搭建
  11. iOS开发:UILabel无法响应点击事件的问题
  12. Enabling Active Directory Authentication for VMWare Server running on Linux《转载》
  13. Java算法分析1—————寻找数组同样元素
  14. Mahout之(三)相似性度量
  15. oracle内存优化
  16. QT中pro文件编写的详细说明
  17. 【Python】【异步IO】
  18. 2019.01.02 洛谷P4512 【模板】多项式除法
  19. 解决ssh连接慢(有时候等半分钟才出现密码输入提示)的方法
  20. 根据服务端生成的WSDL文件创建客户端支持代码的三种方式

热门文章

  1. ruby + watir 自动化上传图片文件解决方案
  2. github代码上传之命令提交
  3. yii2 GridView 下拉搜索实现案例教程
  4. WEB压力测试
  5. Spark大数据的学习历程
  6. html5 如何进行自定义属性的定义和查询
  7. dpkg
  8. Linux信号
  9. python异常
  10. android 实现ImageView按压效果和解决背景图片拉申问题