Solved

vb.net Threads to  update datatable best way

Posted on 2013-01-11
1
241 Views
Last Modified: 2013-01-16
I have a program that will query computers for some wmi information.

Put that information into a datatable.

I figured it would be nice to have it query maybe 3 or 4 computers at the same time and update one datatable.

For each computer in Computers
  dim dt as new datatable
  dt = GetCompInfo(computer.name)  * Threaded sub returns it's own datatable.
next

As threads return I woudl then add their rows to the Public main datatable.

What is the best way to approach this?

Thanks,

Rog
0
Comment
Question by:Rog
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now