this is the error(compile time)
java.sql.SQLException: Network error IOException: Connection refused: connect
Compile time? Do you mean runtime?
I'm a little surprised you are getting as far as this SQLException, you are using jTDS but your
JDBC URL is for Microsoft's own driver. Which are you using?
Connections are refused by SQL Server 2000 for the following reasons:
Using the wrong usernane or passwordThe server instance is not configured to accept TCP/IP connections (in SQL Server 2000 it is by default I think, later versions this is not true)The server instance is configured to only use Windows Integrated authentication (which is t he default for SQL server)The server OS doesn't have any service packs applied (out the box with no SPs SQL Server 2000 just doesn't seem to work).