Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 July 19th, 2003, 08:03 PM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default use dataset ?

Firstly, this is my first post. Please let me know if it is in the incorrect forum.
I am using Visual Studio / Visual Basic

I am using a MSDE database to hold records of purchases.
I have four text boxes on my web form: For Example: One holds the Description of the product, one the QuantitySold, one the UnitPrice

I would like to add one record at a time to a dataset perhaps, and when I am finished, update the dataset to the database.

Should I be using a dataset to do this?, If so, I could use a little help.
Thanks

 
Old July 20th, 2003, 05:56 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
From my point of view, best to use Datatable as it is easier, best way of doing this is create a table named after your purchases table in your MSDE database. Then use DataAdapter to fill schema to your database table. That way you will have same data structure table as your table. Add data to your table one at a time from your text boxes, and once you complete the task, use your DataAdapter & CommandBuilder objects to update to your MSDE database.
Once updated then, you can clear all the data in your table, but not to dispose the table or clear it's schema. So you can re-enter data and start the cycle again.
Hope this help, if not give me a buzz..

Cheers
Kasie


 
Old July 20th, 2003, 06:00 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi again,
Just to says that if you only going to use only one table from your database then use datatable but if there are more than 1 table used then create a dataset and creates many tables as you like in it.
Sorry, forget to add this..
Thanks
Kasie






Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill a DataSet from another DataSet kamranzafar C# 1 February 7th, 2007 11:14 AM
Fill(dataset) or dataset.load() salemkoten SQL Server 2005 1 November 2nd, 2006 11:04 PM
Converting a untyped dataset to a typed dataset daphnean Visual Studio 2005 0 July 13th, 2006 01:16 AM
Copy dataset to another dataset kapila VB.NET 2 November 13th, 2005 06:25 AM
Re: SQL Server dataset to ACCESS dataset dazzer ADO.NET 0 March 22nd, 2004 05:28 AM





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