I am struggling to connect to SQLServer using jtds-1.2. I am able to connect to the server using Enterprise Manager, but when I tried through my application it throws exceptions. This is how I try,
java.sql.SQLException: Login failed for user 'ananth_chellathurai'.
Are you sure, you are passing the correct password? Where does the username and password come from, in your code? [ September 04, 2008: Message edited by: Jaikiran Pai ]
The user name and password are same while I try to access it through jtds and enterprise manager. User name is ananth_chellathurai is my windows user name. I am sure I am providing the right password too.
I tried to connect using a database user name and I have succeeded to get a connection. But the problem is when I tried using my windows user id and password.