Results 1 to 3 of 3
- 04-14-2010, 04:32 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 2
- Rep Power
- 0
Ireport: connection to SQL server refused
Hello there.
I am new at Java and especially ireport. I am running 3.7.1 version and I am trying to create a connection to a SQL server.
I downloaded the most recent driver, so in the JDBC Driver field I pass "MS SQLServer (net.sourceforge.jtds.jdbc.Driver)". In the JDBC URL field, which by default it is "jdbc:jtds:sqlserver://localhost/DATABASE", I change it to "jdbc:jtds:sqlserver://MY_SERVER'S_NAME/MY_DATABASE'S_NAME", I enter the right username and password but I get the error: "SQL problems: Network error IOException: Connection refused: connect".
What should I do?
Thank you in advance.
- 04-14-2010, 05:01 PM #2
Senior Member
- Join Date
- Mar 2010
- Posts
- 266
- Rep Power
- 4
check that
- server name is correct
- port number is correct (you should be using jdbc:jtds:sqlserver://SERVER:PORT/DATABASE)
- server is configured to accept TCP/IP connections
- there isn't a firewall blocking connections
- 04-14-2010, 05:13 PM #3
Member
- Join Date
- Apr 2010
- Posts
- 2
- Rep Power
- 0
I also use .NET for some other applications, so when I connect to the same database through .NET, I have no problems. So, no firewall blocks my connection and my server is configured to accept TCP/IP connections.
My database is in the folder SERVER_NAME/SOME_FOLDER/DATABASE_NAME
When I run Microsoft SQL Server Management Studio Express, I see that path for my database.
I tried "jdbc:jtds:sqlserver://SERVER_NAME/SOME_FOLDER:1344/DATABASE_NAME", "jdbc:jtds:sqlserver://SERVER_NAME:1344/SOME_FOLDER/DATABASE_NAME" but had the same message as above.
Now what? :-(Last edited by kolonaki; 04-14-2010 at 05:16 PM.
Similar Threads
-
Server app throwin connection refused to host...help
By JDPS in forum NetworkingReplies: 0Last Post: 03-30-2009, 12:34 AM -
Error opening socket: java.net.ConnectException: Connection refused: connect
By somersst in forum Java ServletReplies: 3Last Post: 01-26-2009, 05:30 PM -
"connection refused when attempting to contact localhost
By katie in forum New To JavaReplies: 2Last Post: 11-21-2008, 08:36 PM -
Socket refused, but applet talking to native server
By Waccoon in forum NetworkingReplies: 1Last Post: 12-17-2007, 11:13 AM -
java.net.ConnectException: Connection refused
By Albert in forum Advanced JavaReplies: 2Last Post: 07-03-2007, 04:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks