-->
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.  [ 5 posts ] 
Author Message
 Post subject: Problem with MS SQL Server views
PostPosted: Mon Dec 15, 2003 4:13 pm 
Newbie

Joined: Mon Oct 13, 2003 4:15 pm
Posts: 4
Hello,

I am having trouble getting data from views in MS SQL Server. I mapped the view correctly, using a unique field as the key. And all I am trying to do is pull data from it using the find() method. No tricky where clause or anything. Just trying to pull everything out.

It doesnt' work. I tested it using an actual table, and it worked fine, but not when it is a view.

I am using MS SQL Server, and Merlia driver.

Anyone have this problem before? Suggestions?

Here is the error I'm getting:

2003-12-15 15:10:13,871 [Thread-6] WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 7391, SQLState: 01000
2003-12-15 15:10:13,871 [Thread-6] ERROR net.sf.hibernate.util.JDBCExceptionReporter - [SQLSERVER]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
2003-12-15 15:10:13,891 [Thread-6] ERROR net.sf.hibernate.util.JDBCExceptionReporter - Could not execute query
com.inet.tds.SQLException: Msg 7391, Level 16, State 1, Procedure CPRO_PROJECTS, Line 3, Sqlstate 01000
[SQLSERVER]The operation could not be performed because the OLE DB provider 'MSDAORA' was unable to begin a distributed transaction.
at com.inet.tds.a.a(Unknown Source)
at com.inet.tds.a.a(Unknown Source)
at com.inet.tds.b.try(Unknown Source)
at com.inet.tds.b.executeQuery(Unknown Source)
at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:62)


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 09, 2006 7:12 pm 
Newbie

Joined: Mon Apr 03, 2006 1:38 am
Posts: 11
I am having the same problem. Does anyone have any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 09, 2006 8:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Have you tried the jTDS driver?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 10, 2006 7:51 pm 
Newbie

Joined: Mon Apr 03, 2006 1:38 am
Posts: 11
I am using NHibernate. I just thought I'd add a reply to this post in case there was a common solution between NHibernate and Hibernate. I've done some research and it appears as though on Windows 2003 server the Distributed Transaction Coordinator (DTC) service is disabled by default. I'll post a reply once I've had some time to test whether enabling it fixes the problem.


Top
 Profile  
 
 Post subject: Similar problem here with a view on SQL Server, others work!
PostPosted: Mon May 22, 2006 1:14 pm 
Newbie

Joined: Mon May 22, 2006 9:27 am
Posts: 3
Location: Nigeria
i'm having a similar problem too. i am using SQL Server 2000 on Windows XP. i have a view on the SQL Server accessing tables on another SQL Server on another computer. Funny enough, my other views are working except for one of them. And the logic is almost identical. I am considering deleting the view and recreating it.

meanwhile, any progress with you guys? 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.  [ 5 posts ] 

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.