Below is my Torque.properties info. FYI - I set maxActive higher for
production and load testing.

About your exceptions problems, are all the tables owned by the user
you are connecting to the DB with?  Alternatively, does the owner
name match the one set by the "torque.database.schema" property 
in your build.properties file?  MS SQL can be picky about this and
maybe the MS driver was doing something non-standard like looking 
for owner.table and then dbo.table.

FWIW, I suggest having a common owner/db connection id and not 
setting the schema unless you need to.  It makes the Torque
code much more portable.

Are you connecting with a SQL User or trying to use MS's net id
authentication?  I think there may be some extra parameters needed 
by jTDS in the latter case. FWIW, I don't use this, I use a specific
SQL user (which is more portable).

Here's my config:

torque.database.default.adapter=mssql
torque.dsfactory.default.connection.driver =
net.sourceforge.jtds.jdbc.Driver
# ;TDS=7.0 option needed for MS SQL 7.0 only.
torque.dsfactory.default.connection.url =
jdbc:jtds:sqlserver://mssql.dukece.com:1433/dbName;TDS=7.0
torque.dsfactory.default.connection.user =  MSsqlUser
torque.dsfactory.default.connection.password = password

# # Using commons-dbcp
torque.dsfactory.default.factory=org.apache.torque.dsfactory.SharedPoolD
ataSourceFactory
torque.dsfactory.default.pool.maxIdle=8
torque.dsfactory.default.pool.maxActive=10
torque.dsfactory.default.pool.testOnBorrow=true
torque.dsfactory.default.pool.validationQuery=SELECT 1

> -----Original Message-----
> From: KERNEUZET FREDERIC [mailto:[EMAIL PROTECTED] 
> 
> thanks for your suggestion, i've tried to install Jtds driver 
> but unsuccessfully ... Some doSelect() methods start throwing 
> exceptions (but not all ! Strange ...).
> 
> Which pool do you use with your JTDS driver ? And could you 
> give me some examples of your torque configuration file ?
> 

Duke CE Privacy Statement
Please be advised that this e-mail and any files transmitted with it are 
confidential communication or may otherwise be privileged or confidential and 
are intended solely for the individual or entity to whom they are addressed.  
If you are not the intended recipient you may not rely on the contents of this 
email or any attachments, and we ask that you  please not read, copy or 
retransmit this communication, but reply to the sender and destroy the email, 
its contents, and all copies thereof immediately.  Any unauthorized 
dissemination, distribution or copying of this communication is strictly 
prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to