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

i have problem ?

i have 2 tables the first one have an info about emp
the end table have salary

now what the most proffessinal to do

one dataadapter with 2 ds or 2 adapter 2 ds

when i want to retreve the sal* empname

its relly diffcult for me

thnx alot for help
Posted

IMO, one adapter - create a query that does an inner join.
 
Share this answer
 
v2
Write a query that joins two tables emp, salary using join and fetch the data in one dataset.

Learn more about SQL queries in whatever database you are using by reading books or googling whatever!
 
Share this answer
 
Rather than worrying about how to do this in your application, you might be better off by thinking about how to do it in the database.

A View or a stored procedure, perhaps.
 
Share this answer
 
you can do this with two methods .. i suggest using one adapter with one dataset..one dataset may be contains many tables

another way to do this 2 DataTable objects and then fill data into them , then add this table objects to dataset
 
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