Hi guys, I need some help, I have been trying to get a connection to an MS SQL database and I keep getting the following error: -
java.sql.SQLException: Unknown server host name '127.0.0.1\SQLEXPRESS'.
My config.properties file has the following: -
#DATABASE CONFIGURATION
DriverClass=net.sourceforge.jtds.jdbc.Driver
JdbcUrl=jdbc:jtds:sqlserver://127.0.0.1\\SQLEXPRESS
databaseName=supreme
User=sa
Password=xxxxxx
#Java server port
ServerPort=17178
#SQL COMMANDS
sql.select_all=SELECT datearrived FROM swmain
I have included #AdditionalJar: jtds-1.3.1.jar
otherwise I am using the same code as on the web site. I just can't figure out what is going wrong.
Regards
java.sql.SQLException: Unknown server host name '127.0.0.1\SQLEXPRESS'.
My config.properties file has the following: -
#DATABASE CONFIGURATION
DriverClass=net.sourceforge.jtds.jdbc.Driver
JdbcUrl=jdbc:jtds:sqlserver://127.0.0.1\\SQLEXPRESS
databaseName=supreme
User=sa
Password=xxxxxx
#Java server port
ServerPort=17178
#SQL COMMANDS
sql.select_all=SELECT datearrived FROM swmain
I have included #AdditionalJar: jtds-1.3.1.jar
otherwise I am using the same code as on the web site. I just can't figure out what is going wrong.
Regards