-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Sybase problem
PostPosted: Wed Nov 10, 2004 1:29 pm 
Beginner
Beginner

Joined: Mon Aug 02, 2004 7:28 am
Posts: 38
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.