I'm trying to create a reverse engineering file so I created a config file and a Hibernate console using Eclipse 3.1. I'm using a SQLServer Express 2005 database in the same PC I'm using, and the latest jdbc version from MicroSoft. I had different problems like TCP/IP ports not enabled, trusted connection, and such. I've been solving them, but I've got to a point were I cant see what's happening... I get the error message that follows:
com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'sa'.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at org.hibernate.console.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:23)
...
I don't really know if there exists a user, I've sure haven't created one, and I guess 'sa' is the default user, and 'sa' it's password. If I write no username, The error message is as follows:
"com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''. The user is not associated with a trusted SQL Server connection."
What is the problem? Is it that I don't supply a correct username/password? I don't know any! I haven't created nor modified anything!
|