不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'tempdb.dbo.#3884BFB0',列 'IsNominate')。请使用 CONVERT
来源:互联网 发布:javascript 关键字 编辑:程序博客网 时间:2024/06/03 20:52
不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'tempdb.dbo.#3884BFB0',列 'IsNominate')。请使用 CONVERT
函数来运行此查询。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: 不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'BBS2031.dbo.pz_Forum_ReplyRecycle',列 'TableNumber')。请使用 CONVERT 函数来运行此查询。
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
问题的根本原因在与字段顺序对错了 ,问题主要放生在存储过程。尤其是在存储过程中创建一临时表的时候,也就是在临时表的字段排列顺序上有问题
存储过程提示错误
服务器: 消息 260,级别 16,状态 1,行 7
不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'tempdb.dbo.#3884BFB0',列 'IsNominate')。请使用 CONVERT
函数来运行此查询。
这就是问题的根本。。。
本次问题的原因在与 在添冲临时表的是时候用到了select * from XXX 表里面的字段与存储过程中临时表的字段顺序不匹配。。
- 不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'tempdb.dbo.#3884BFB0',列 'IsNominate')。请使用 CONVERT
- 不允许从数据类型 ntext 到 varchar 的隐性转换。请使用 CONVERT 函数来运行此查询
- 不允许从数据类型varchar到数据类型money的隐性转换
- 不允许从数据类型 nvarchar 到 varbinary 的隐式转换。请使用 CONVERT 函数来运行此查询
- 关于 “不允许从数据类型 sql_variant 到 uniqueidentifier 的隐式转换。请使用 CONVERT 函数来运行此查询“的最终解决
- com.microsoft.sqlserver.jdbc.SQLServerException: 不允许从数据类型 varbinary 到 date 的隐式转换。请使用 CONVERT 函数来运行此
- text、ntext 和 image 数据类型无效 ( 不允许从数据类型 ntext 到 varchar 的隐性转换) 的解决方法
- 从 char 数据类型到 datetime 数据类型的转换导致 datetime 值越界的解决方法
- 从 char 数据类型到 datetime 数据类型的转换导致 datetime 值越界解决方案
- 从char数据类型到datetime数据类型的转换导致datetime值越界
- 从 char 数据类型到 datetime 数据类型的转换导致 datetime 值越界
- 从 char 数据类型到 datetime 数据类型的转换导致 datetime 值越界。
- 从 char 数据类型到 datetime 数据类型的转换导致 datetime 值越界
- sqlserver查询报从char数据类型到datetime数据类型的转换导致datetime值越界
- Oracle数据类型的隐性转换
- 从char数据类型到datetime转换导致datetime值越界
- 从 datetime2 数据类型到 datetime 数据类型的转换产生一个超出范围的值。
- 从 datetime2 数据类型到 datetime 数据类型的转换产生一个超出范围的值
- (转)用 LPVM 来修改用 Wubi 安装 Ubuntu 时分配的硬盘大小
- 构造树 所对应数据表的设计
- LoadRunner安装及快速使用
- SQL语言简介(二)
- 局域网中IP地址的切换和保护
- 不允许从数据类型 datetime 到数据类型 int 的隐性转换(表 'tempdb.dbo.#3884BFB0',列 'IsNominate')。请使用 CONVERT
- iisrewrite 中文参数解决方案:
- ToString()、Convert.ToString()、(string)、as string 的区别
- 算法导论上几个简单的习题
- Asp.net日期字符串格式化显示方法
- SSH专业课学习(一)spring的IOC(控制反转)
- 观察者模式(Observer Pattern)
- 开始怀念
- ORM和easyOrm