Solved

How to split vb.net dataset

Posted on 2013-05-27
12
406 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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