Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2004, 05:36 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datasets

How do I use datasets, adapters to use multiple tables, such as:
 dataset.table(0)
 dataset.table(1)

Thanks

Louisa

 
Old October 6th, 2004, 07:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Create multiple adapters and do:

ad1.Fill(ds, "Table1")
ad2.Fill(ds, "Table2")
'and so on


Then reference them as ds.tables(0) or ds.tables("Table1")

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
When To Create Datasets AspNetGuy BOOK: Beginning ASP.NET 2.0 and Databases 2 July 6th, 2008 07:48 AM
C# .net2 need help with datasets ryan.thomson C# 2005 0 January 27th, 2006 04:11 PM
Comparing two datasets vip1976 ADO.NET 1 December 2nd, 2005 01:42 AM
DataSets CodeMonkeys C# 1 September 7th, 2004 09:48 PM
Comparing DataSets. jitu ADO.NET 1 June 7th, 2004 11:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.