DataSet

I

itsme

Hi,

How can I combine the rows from two tables as a result of
an outer join, wherein I have a primary key and foreign
key constraints.

Right now, I am using two different adapters to fill the
dataset. Is there any way I can use a single data adapter
to fill the data in the dataset with constraints in tact?

Your suggestions are truly appreciated.
 
C

Cowboy \(Gregory A. Beamer\)

You can send multiple commands on a single adapter. If you are using stored
procedures, simply return multiple result sets via separate SELECT blocks.
You will have to map the tables (which will be Table, Table1, Table2 ...
TableN) to friendly names, if that is your goal (a good goal for
maintainability). The syntax is like so:

DataAdapterName.TableMappings.Add("Table", "Customers");

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top