-->
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.  [ 2 posts ] 
Author Message
 Post subject: Warnings from queries
PostPosted: Thu Feb 03, 2005 3:53 pm 
Newbie

Joined: Wed Dec 22, 2004 4:25 pm
Posts: 5
Hi,

Using:
Hibernate 2.1.8
Ms Sql Server 2000
c3p0 connection pool.

I am getting this set of messages when I do Hibernate queries.
The queries work fine but I would like to track down where these messages are coming from.

WARN [main][JDBCExceptionReporter]: SQL Warning: 5701, SQLState: 01000
WARN [main][JDBCExceptionReporter]: [BOS245DA461194]Changed database context to 'pvr'.
WARN [main][JDBCExceptionReporter]: SQL Warning: 5703, SQLState: 01000
WARN [main][JDBCExceptionReporter]: [BOS245DA461194]Changed language setting to us_english.


I know that JDBCExceptionReporter is a Hibernate object but I do not know where this message is originating.

Do I need to add another property in my Hibernate.cfg.xml file or maybe pass a parameter to the JDBC driver or is it a setting on my database.

Any insite would be appreciated.

Below is the message and a partial listing of my hibernate.cfg.xml file

<property name="hibernate.connection.url">jdbc:inetdae7:localhost:1433</property>
<property name="hibernate.connection.driver_class">com.inet.tds.TdsDriver</property>
<property name="hibernate.connection.username">pvradmin</property>
<property name="hibernate.connection.password">pvradmin</property>
<property name="hibernate.dialect">net.sf.hibernate.dialect.SQLServerDialect
</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.max_fetch_depth">3</property>
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">100</property>
<property name="c3p0.max_size">100</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">5</property>
<property name="c3p0.timeout">100</property>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 4:33 pm 
jTDS Developer
jTDS Developer

Joined: Tue Feb 24, 2004 5:36 pm
Posts: 70
Location: Bucharest, Romania
The warnings are generated by SQL Server itself. (As you can see they are not really warnings, but messages, but that's how SQL Server does it.)

The JDBCExceptionReporter simply notices these warnings and logs them. There's nothing you can do about it. Just ignore them.

And make sure you use jTDS. ;o)

Alin,
The jTDS Project.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.