473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to Connect the Sql Server with java using netbeans

i want to connect sql server with my java project but i have got error like this

com.microsoft.sqlserver.jdbc.SQLServerException: The port number 1433/tour_db is not valid.

this is my code:

Class.forName("com.microsoft.sqlserver.jdbc.SQLSer verDriver");
Connection con=DriverManager.getConnection("jdbc:sqlserver://localhost:1433/tour_db");
Apr 2 '14 #1
0 1284

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chaitanya | last post by:
please tell me ,the tld files like struts-bean.tld, struts-html.tld, struts-logic.tld are generated automatically or done by ourselves using Netbeans. As they are automatically generated in...
2
by: jeffhan | last post by:
we have os/400 db2 database at the backend. i installed db2 v9 connect server on one windows server which is locating the same network with database server. now how to i configure the connect...
1
by: buzzko | last post by:
Hi! I hope someone can help me. I want to connect to a Microsoft SQL Server 2005 Express Edition database programming in C++. I am using Netbeans (with g++ compiler) platform over Windows because...
0
by: arahmoun | last post by:
I am developing a Dbase application in a mobile environment using NetBeans. I created tables that cannot be displayed. I am also using MySql for Data connect. Please tell me how to make these tables...
0
by: Ajinkya Doshi | last post by:
I want the stepwise description of publishing the web service through netbeans......
0
by: Michael Pearson | last post by:
I currently have two know problems with my current code. First, I can't seem to get the image to display. I have the gallows already displaying and I want to get the head (that is the next pic that...
1
by: Kakatwa Amigo | last post by:
is it possible to have a J2ME (using NetBeans) as client and vb.net (2010) as server?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.