===========start exception =========================
11:27:54,553 DEBUG JDBCExceptionReporter:18 - SQL Warning
java.sql.SQLWarning: [DEV03752]Changed database context to 'rem1'.
at com.inet.tds.a.a(Unknown Source)
at com.inet.tds.a.<init>(Unknown Source)
at com.inet.tds.TdsDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at .sf.hibernate.connection.DriverManagerConnectionProvider.
getConnection(DriverManagerConnectionProvider.java:101)
===============end exception =======================
I am using hibernate 2.1 with MS Sql Server. The demo is working, but I get the above exception, and the tables end up created in a different database. I have two databases, REM1 and REM4 that have the same login. My configuration points to REM4 database, but due the exception, it ends up using REM1 database. I am using INETSOFTWARE JDBC driver for MS Sql Server. Does anyone know what is going on and why?
Thanks
|