Hi,
I am a newbie in hibernate and I am trying to connect with SQL server 2008 R2 with WINDOWS AUTHENTICATION.
Below are the property entries in build.xml
<property name="database.driver.file" value="C://Middlegen-Hibernate-r5/lib/sqljdbc4-3.0.jar"/> <property name="database.driver.classpath" value="${database.driver.file}"/> <property name="database.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/> <property name="database.url" value="jdbc:sqlserver://<hostname>:1433;DatabaseName=QA1"/> <property name="database.userid" value="9shar"/> <property name="database.schema" value="LDF"/> <property name="database.catalog" value="QA1"/>
The build fails saying middlegen.MiddlegenException: Couldn't connect to database: Login failed for user '9shar'.
Note : I am doing this in VPN.
Please help
Thanks, Ravi
|