Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

The conversion from date to BINARY is unsupported. ERROR

$
0
0

I try to query database, sometime it can query and sometimes it cannot

And It show error below

caused by: Unable to retrieve result from data source "xxxxxxx" during
    query execution.  Failed query: "SELECT

and then

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The conversion from date to BINARY is unsupported.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
at com.microsoft.sqlserver.jdbc.DataTypes.throwConversionError(DataTypes.java:1117)
at com.microsoft.sqlserver.jdbc.ServerDTVImpl.getValue(dtv.java:2481)
at com.microsoft.sqlserver.jdbc.DTV.getValue(dtv.java:193)
at com.microsoft.sqlserver.jdbc.Column.getValue(Column.java:132)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getValue(SQLServerResultSet.java:2082)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getValue(SQLServerResultSet.java:2067)
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.getBytes(SQLServerResultSet.java:2218)
at com.compositesw.cdms.ds.jdbc.shunt.SqlServerRawDateShunt.jdbc2Value(SqlServerRawDateShunt.java:44)
at com.compositesw.cdms.ds.jdbc.JdbcConnectionTableCursor.next(JdbcConnectionTableCursor.java:214)
... 16 more

How can I fix it?

Thanks and Regard


Viewing all articles
Browse latest Browse all 15264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>