6
Answers

.Net Entity Framework to DB2

Sarika k

Sarika k

13y
4.7k
1
Hi,

I am trying to connect to the DB2 from entity frame work (.Net 3.5. using Db2 add-ins). But it throws the following error: Does any one know how to fix this.


---------------------------
Microsoft Visual Studio
---------------------------
An error occurred while connecting to the database. The database might be unavailable. An exception of type 'System.Data.EntityCommandExecutionException' occurred. The error message is: 'An error occurred while executing the command definition. See the inner exception for details.
The inner exception caught was of type 'IBM.Data.DB2.DB2Exception', with this error message: 'ERROR [42622] [IBM][DB2] SQL0107N  The name "RETURNDATETIMEPRECISION" is too long.  The maximum length is "18".  SQLSTATE=42622
'.'.
Answers (6)