ver 2.1
I have looked everywhere on the forum and can't fin anything, so eighter I made a stupid mistake, or it is something serious.
Here goes...
When I run my code against a MYsql db or HsqlDB, it works fine, but when I try and run it against a sybase server I get the following exception:
Caused by: com.sybase.jdbc2.jdbc.SybSQLException: Record not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).
at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2796)
at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:2126)
at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:220)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:203)
at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1746)
at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1738)
at com.sybase.jdbc2.jdbc.SybPreparedStatement.execute(SybPreparedStatement.java:612)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:508)
... 33 more
it looks like I have to specify the user and dbname somewhere apart from the hibernate.props.
Here are my props:
.......
hibernate.dialect net.sf.hibernate.dialect.SybaseDialect
hibernate.connection.driver_class com.sybase.jdbc2.jdbc.SybDriver
hibernate.connection.username sa
hibernate.connection.password
hibernate.connection.url jdbc:sybase:Tds:DIVANLAPTOP:5007/test
........
Can anyone help me??
Thanks in advance
|