Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir,

Sir i had created the table in MSSQL,the fields with patient name,pid,Dname(doctor name),technician name.Here it contains say four names in the table.I had created the patient name and doc name and search button in GUI window.What i want is after giving the name of both patient & doctor,after clicking the search button.It has to display patient details accordingly,that what is present in his row.I mean only his row has to be displayed in the next Jpanel within same window.I created table in MSSQL,GUI in eclipse.How to achieve it..


Help me in this regard..


Thanks & Regards
Pradeep
Posted

1 solution

No need to post the same question again - you could simply answer in the original question:

Retrieving the single row from MSSQL into the GUI window[^]

I have posted 2 links. Read what is written there. You need to connect your program to the database - you can use JDBC for that (weblink 2). After you have established the connection you will need to ask the database for the desired data. How to create that query is described in weblink 1.

I also recommend to buy a book about general java programming. It's got the advantage that you do not need to know where to search. Most Java books cover the connection to a database via JDBC.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900