473,513 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

connection to sqlserver using jsp(urgent)

12 New Member
hi all......

this is ravi
i m new to this forum.....

ok coming to the point

i m using database sqlserver n trying to conect through jsp

i installed sql server drivr 2000 in my system

when try to run my appliication i m getting following error

java.lang.ClassNotFoundException: com.microsoft.jdbc.SQLServerDriver

my code is:

<%@ page import = "java.io.*" import = "java.lang.*"
import = "java.sql.*" %>

<%
out.println("<h2>Successfully logged </h2>");
try
{
Class.forName("com.microsoft.jdbc.SQLServerDriver" );
Connection con=DriverManager.getConnection( "jdbc:SqlServer://localhost:8080/ravi","sa","sa");

Statement st = con.createStatement();

String sql="INSERT INTO ravi1 VALUES ('Michael', 'dba', '90000' )";
st.executeUpdate(sql);


give me advice

waiting for u r reply............

thanks in advance


regards..
ravi
Jan 22 '07 #1
1 1551
acoder
16,027 Recognized Expert Moderator MVP
You've posted a similar question earlier which has already been moved to the Javascript forum, though I think the Java forum would be more ideal for JSP problems.
Jan 22 '07 #2

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

Similar topics

4
1088
by: SK | last post by:
Hi i m populating a datagrid with data from excel. is it possible to take the datatable in this dataset and create the same as a new table in SQl database. can some one gimme ideas to solve the same...
0
1071
by: SDRoy | last post by:
Hi: Can some please tell me if there is a way to invoke the SQL user challenge dialog from ADO.Net ? I mean what would be the equivalent (if any) code in ASP.Net/C# or VB.Net for the following...
5
5450
by: mail | last post by:
Urgent help needed! I moved an application from ASP+ACCESS to ASP+MS SQLSERVER and I have the following problem: If the join on two tables results on duplicate colum names (which appear in...
3
3499
by: mammykizzy | last post by:
my name is stella,im developing a simple application using vb6 and sql,im trying to connect to the database using ADO, my problem is, UNDER WHAT EVENT DO I CONNNECT TO THE DATABASE
0
1243
by: nickyeng | last post by:
what is the possibility that java.net.ConnectionException will be thrown ? i have a form in jsp, once finish fill up i enter submit button, it will go thank you page. In Thank you page, i save the...
2
1238
by: banjuu | last post by:
hi can anyone give example on how to use sessions in jsp through Httpsession.
6
1854
by: muddasirmunir | last post by:
i make a form whic has one data grid and one text box and one button when i write a name on tex box and click add the name stored in database successfully. now in the grid i want to show all the...
6
4065
by: hussainiyad | last post by:
Hi all, I,m new to vb.6.0 and i don,t know how to connect to sql server through v.b 6.0 with the help of adodc control, and anyone plz tell me how connect and insert ,update,delete and other...
2
2362
by: itsvineeth209 | last post by:
My task is to create login control without using login control in tools. I shouldnt use sqldatasource or any other. I should use only data sets, data adapters and data readers etc. U had created...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.