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