【问题标题】:[Microsoft][SQLServer 2000 Driver for JDBC]Value can not be converted to requested type[Microsoft][SQLServer 2000 Driver for JDBC]值无法转换为请求的类型
【发布时间】:2014-12-03 14:32:51
【问题描述】:

在我的项目中,我使用 Microsoft SQLServer 2008 创建数据库架构。我的项目在 Microsoft SQLServer 2008 中运行良好。但是当我将相同的架构放入 Microsoft SQLServer 2000 时,我得到以下异常并且我的休眠查询没有执行.以下是例外列表。

could not read column value from result set: actualSt3_9_0_; [Microsoft][SQLServer 2000 Driver for JDBC]Value can not be converted to requested type.
SQL Error: 0, SQLState: HY000
[Microsoft][SQLServer 2000 Driver for JDBC]Value can not be converted to requested type.
[Microsoft][SQLServer 2000 Driver for JDBC]Database changed to TimeSheet_Test
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed database context to 'TimeSheet_Test'.
[Microsoft][SQLServer 2000 Driver for JDBC]Language changed to us_english
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Changed language setting to us_english.
Messagecould not execute query

下面是我在[Microsoft][SQLServer 2008]中使用的驱动

database.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
hibernate.dialect=org.hibernate.dialect.SQLServerDialect

如何解决这个问题?

任何帮助将不胜感激!!!!

【问题讨论】:

  • 什么是查询,什么是表架构?

标签: java sql-server spring hibernate sql-server-2008


【解决方案1】:

由于您要从 MS SQL 2008 回到 2000,因此有一列的数据类型在 2008 年受支持,在 2000 年不受支持。例如“日期”数据类型。

【讨论】:

    猜你喜欢
    • 2019-11-09
    • 1970-01-01
    • 2018-05-16
    • 2021-02-02
    • 2019-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多