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: How to get two result sets from stored procedure?
PostPosted: Wed Oct 15, 2008 5:45 am 
Newbie

Joined: Wed Oct 15, 2008 5:23 am
Posts: 1
My task is - get data page from database with total amount of records using stored procs in ONE QUERY. It can be one stored proc or 2 in the batch.

It's appears that there is no way to work with output or result params of stored procs.

I tried IMultiQuery but it doesn't work with ISQLQuery.

Any ideas?
Thanks in advance.

[b]Hibernate version:[/b]
2.0.1
[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]
MSSQL 2005
[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


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.