Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining Two (or More) DataSets 1

Status
Not open for further replies.

iaresean

Programmer
Mar 24, 2003
570
ZA
Hello all;

I generate datasets using and sql command. Does anyone know how I could combine two or more datasets into a single dataset that I can use to populate a control?

All the datasets have the same structure in terms of columns, but obviously very different data.

I am pretty sure that a stored procedure would have been the best route, however, I do not have stored procedures available to me.

Any and all help would be greatly appreciated!

Sean. [peace]
 
do a UNION ALL query to combine them...

example...

Select field1, field2 from table1
UNION ALL
Select field1, field2 from table2

-DNG
 
Can you explain "do not have stored procedures available"? Is it because you don't have access or the database doesnt support it? If it's because you don't have access to create them, then use the union all. If it's because your db doesn't support it, then it may not support union all.
 
Hi Macleod1021;

No the db for this project, MS ACCESS 2000, doesn't support stored procedures, but it does support the UNION ALL. Actually after further coding I realised that UNION ALL actually wasn't really going to solve my problem due to technical requirements. I ended up using multiple datasets combined with the MERGE function.

Regards;

Sean. [peace]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top