Solved

How to split vb.net dataset

Posted on 2013-05-27
12
400 Views
Last Modified: 2013-05-28
Software vb.net & sql server 2005.

How do I go about splitting a large dataset into 2 datasets using one sqlserver database.

The existing dataset is too large and it is difficult to add columns to tables.

Thanks!
0
Comment
Question by:dave_sky
  • 6
  • 6
12 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 39200974
What do you mean by "too large"?  Too many rows, or too many columns?

AW
0
 

Author Comment

by:dave_sky
ID: 39201687
93 tables - several tables have a large number of rows.
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 39201700
You have a dataset composed of 93 DataTables?

AW
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:dave_sky
ID: 39201802
Yes
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 39201811
What is the nature of your application.  

AW
0
 

Author Comment

by:dave_sky
ID: 39201893
Construction quotes, workorders, material data.
0
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 500 total points
ID: 39201905
Rather than creating a single, all-encompassing Dataset, how about creating more targetted datasets - say per form, or per application area.  Would something along those lines fit?

AW
0
 

Author Comment

by:dave_sky
ID: 39201958
Yes that should work, the application is almost finished.

Can I use the same sql server 2005 database for more than one dataset?
0
 

Author Comment

by:dave_sky
ID: 39201983
Actually, If I only move one area that would free up the the main dataset so it can be used.
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 39202025
>>Can I use the same sql server 2005 database for more than one dataset? <<  Yes, what gave you the idea that you couldn't?

A Dataset is composed to DataTables.  You can have as many Datasets as your application design requires.  There is nothing that requires a single dataset to describe an entire database.  A Dataset can be thought of as an "in-memory mini-database"  That does not mean that the Dataset is an in-memory version of the entire database.

AW
0
 

Author Closing Comment

by:dave_sky
ID: 39202093
Thanks, that really helped!
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 39202193
Glad to be of assistance.

Happy Programming!!! :-)
AW
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question