473,327 Members | 1,896 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,327 software developers and data experts.

connect sqlserver in netbeans5.5

Hi
I need to know exactly and in details, how can I connect to SQL server 2005 from NetBeans5.5 using sqljdbc_01 package.
thanks in advance
Apr 16 '07 #1
3 1638
Well, forget about the above requirement...
In the coming line of code:

Connection c = java.sql.DriverManager.getConnection("jdbc:sqlserv er://cdwxp-hict8156;DatabaseName=MultilingualTrial01","Userna me","Pasword");

I receive this error:
the Tcp/IP connection to the host has failed.


When write it like:

Connection c = java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://cdwxp-hict8156;DatabaseName=MultilingualTrial01");

No suitable jdbc driver for "microsoft:sqlserver....."


Notes: Sql Server is WindowsNT authentication, what should username and passowrd be?

Please hurry to help
thanks alot in advance
Apr 16 '07 #2
sicarie
4,677 Expert Mod 4TB
Well, forget about the above requirement...
In the coming line of code:

Connection c = java.sql.DriverManager.getConnection("jdbc:sqlserv er://cdwxp-hict8156;DatabaseName=MultilingualTrial01","Userna me","Pasword");

I receive this error:
the Tcp/IP connection to the host has failed.


When write it like:

Connection c = java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://cdwxp-hict8156;DatabaseName=MultilingualTrial01");

No suitable jdbc driver for "microsoft:sqlserver....."


Notes: Sql Server is WindowsNT authentication, what should username and passowrd be?

Please hurry to help
thanks alot in advance
Did you use class.forname and DriverManager.getConnection(), and all those to set up the connection? Is the jdbc driver in your classpath or attached to the file?
Apr 16 '07 #3
sicarie
4,677 Expert Mod 4TB
And username and password should be from a valid account on your SQL server. (It's a very big security risk to use the root or admin user, as I'm sure you know)
Apr 16 '07 #4

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

Similar topics

5
by: Daniel Bass | last post by:
I setup a asp.net project running on http://localhost/ which connects to a database on another server running sqlserver... I was able to connect to the database and create my application no...
2
by: Papa_K | last post by:
I want to connect from a .net web server to a sqlserver. i read an article a while ago on how to do this but i have since 'filed' it and no longer can i find it. i remember that i was able to...
2
by: Reza | last post by:
Hello I am trying to resolve this for a week and pretty much tried everything, Windows authenticatio, Forms authentication, none of .net, but still get a message of. Login failed for user,...
1
by: jhcorey | last post by:
We recently had to repair our SQLServer and a new C drive was put in and SQLServer 2000 sp3 re-installed. The data files were on another drive and I attached them. Now I can do everything...
2
by: saroxonline76 | last post by:
Dear all, I installed Visual Basic 2005 Express and SqlServer Express. I tried some features of both of them but I'm not able to connect a databse through a network. To explain, I have two...
1
by: Michael Peters | last post by:
what does a user (running XP) need who has Access but no SQLServer, and who would like to connect to a remote SQLServer database via ODBC? This user can set up a new System DSN but he needs a...
0
by: Neff | last post by:
I have a clustered installation of SQL Server 2005 with SSIS installed on the cluster. I'm running SQL Server Management Server on one of the cluster nodes and trying to connect to the...
3
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
Last week I asked a question about connection to database from client machine (developer machine). I have changed the database security setup for "SQL Server and Windows" under (local)Windows NT...
6
by: SRK | last post by:
Hi, I have installed free TDS ODBC driver on Linux and from there I am trying to connect to MS SQLSERVER installed on Windows machine. But it gives me following error - tsql -H ps6312 -p 1433...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.