Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-05-2008, 11:17 PM
Member
 
Join Date: Apr 2008
Posts: 1
pelegk2 is on a distinguished road
Java connecting to sql server 2005
i am trying to connecto sql server 2005 using the following code,where in the sql server configuration tool
i have allowed named pipes,and TCP/IP (and in the "IP ADRESS" TAB i have changed all the IP's to ENABLED and ACTIVE= YESbut nothing helps!!!!!!!
if i connect to the sql server form VB.NET everything is working ok
so where is the problem i nthe connection between java and sql 2005?
thnaks in advance
peleg
Code:
C:\Program Files\Java\jdk1.6.0_01\bin>java Test com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the ho st has failed. java.net.ConnectException: Connection refused: connect at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(U nknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknow n Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover (Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Sour ce) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207) at Test.main(Test.java:19)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hibernate support for sql-server 2005 javadev Database 2 06-25-2008 03:48 PM
Connecting to a Web server Java Tip java.net 0 04-07-2008 09:57 PM
problem with viewing .java files when Visual J# 2005 Express Edition exist unhurt New To Java 3 11-03-2007 03:58 PM
Problem connecting to my Database using Java javaneed New To Java 3 08-13-2007 11:35 AM
SQL Server 2005 Jdbc connection mgt83 JavaServer Pages (JSP) and JSTL 0 07-27-2007 06:52 AM


All times are GMT +3. The time now is 01:57 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org