Solved

vb.net Threads to  update datatable best way

Posted on 2013-01-11
1
243 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
ID: 38768495
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 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

19 Experts available now in Live!

Get 1:1 Help Now