Jdbc and Socket Program

Jdbc and Socket Program

Sir,
I would like to get a program i which first a Frame is created and then Username and pssword textfields are added to it.Then as we enetr the user name and password it should be updated in a database.Now we create another program 4 client-server such that the sever's database is updated everytime we enter username and password in client program.
View Answers

July 13, 2012 at 5:25 PM

Write this query or update/change query according to you on client side.

String sql="SELECT * FROM USER WHERE user_name=\""+name+"\" AND password=\""+password+"\"";

send this query as a string through socket and on server side execute this query as normal we do using jdbc

Ads









Related Tutorials/Questions & Answers:
Jdbc and Socket Program - JDBC
Jdbc and Socket Program  Sir, I would like to get a program i... in a database.Now we create another program 4 client-server such that the sever's database is updated everytime we enter username and password in client program
jdbc program
jdbc program   Write a program to update the salaryRs.6000/- for an employee name like ‚??P. Ramu‚?? using prepared statement
Advertisements
execution of a jdbc program
execution of a jdbc program  how to execute a servlet program that..uses a jdbc driver (i.e. using mysql-connector -java )to connect to mysql in windows *PLS provid the execution steps in detail THANK YOU
JDBC Oracle program
JDBC Oracle program  Here is my code: import java.sql.*; public class Tyagi { public static void main (String args[])throws SQLException... = DriverManager.getConnection("jdbc:oracle:thin:@localhost:8080:oracle", "System", "System
How Jdbc program can be run??
How Jdbc program can be run??  import java.sql.*; import java.util.... { Connection conn=DriverManager.getConnection("jdbc:odbc:advdsn1","student","myself... created successfully and when i compiled this program then it compiled successfully
how to run jdbc program in linux-ubuntu?
how to run jdbc program in linux-ubuntu?   how to run jdbc program in linux-ubuntu
how to run jdbc program in linux-ubuntu?
how to run jdbc program in linux-ubuntu?  how to run jdbc program in linux-ubuntu?   hi firstly download the jdk on your system using... to compile java program javac prog.java java prog
write a program for complete JDBC based application
write a program for complete JDBC based application   thank you sir giving answer for my question. my another question is: Write a complete JDBC... and the program should have the facilities of Adding, Modifying, Viewing and Deleting
socket programming
socket programming  how to create server socket in web service...it will read parameter from file
socket programing
socket programing  how can u pass data from 1-another system by socket class
What is Java Client Socket?
What is Java Client Socket?  Hi, What is client socket in Java..., The client socket is basic communication interface between networked computers. The socket that make connectivity with socket client and with a socket server
jdbc
jdbc   how to write program to save data and retrieve data from the form in Java
Jdbc
Jdbc  A java program with jdbc connectivity with insert,delete,update options for name,regno,mark1,mark2,total
Client Socket Information
socket information. This is a very simple program of java network. Here, we have... Client Socket Information   ... of the Socket class passing two arguments as hostName and TIME_PORT
JDBC
JDBC  why we use batch in jdbc
jdbc
jdbc  display the records using index in jdbc
jdbc
jdbc  Hai , Give a steps for jdbc connectivity
Socket Programming
Socket Programming  How to connect a computer through IP only and check whether it is up and running? I can't see any method in Socket programming where I can pass only IP address as argument. I need the pass port number also
jdbc
jdbc  I can't run my jdbc program because it has error in this line: public static void main(String[] args) the error is:illegal static declaration in inner class would you please let me whats the problem? regards
jdbc
jdbc  how to update int values of ms-access in jdbc program?   In MS Access database, use Number data type for int values. import... =DriverManager.getConnection("jdbc:odbc:access","",""); Statement st=null; st
JDBC
JDBC  How to add set of queries in a single query in JDBC
Socket and ports
Socket and ports       In common language we can say that the socket is one of the most... with a socket. Socket classes are used to establish a connection between client
jdbc
jdbc  why do we need to load jdbc drivers before connecting to database
JDBC
JDBC  how to set classpath for eclipse, java, where to copy jdbc connector
JDBC
JDBC  in class.forname which driver name we are writing for the connection from jdbc to sqlserver 2008
jdbc
jdbc  is it possible to use doget & dopost method with jdbc to call in a servlet programe
JDBC
JDBC  can u send me the code of jdbc how to join two tables that are in relation
jdbc
jdbc define batch updates  define batch updates?exp   JDBC... links: http://www.roseindia.net/jdbc/Jdbc-batch-update.shtml http://www.roseindia.net/tutorial/java/jdbc/batchupdateresultsetexample.html
ModuleNotFoundError: No module named 'cothermo-socket'
ModuleNotFoundError: No module named 'cothermo-socket'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cothermo-socket' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'gssapi_socket'
ModuleNotFoundError: No module named 'gssapi_socket'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'gssapi_socket' How to remove the ModuleNotFoundError: No module named
ModuleNotFoundError: No module named 'jsonstore-socket'
ModuleNotFoundError: No module named 'jsonstore-socket'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'jsonstore-socket' How to remove the ModuleNotFoundError: No module

Ads