473,717 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Combining Two Data Sources for one Data List

I am binding the results of a database query to a DataList using the
following code:

SqlDataAdapter myCommand = new SqlDataAdapter( "SELECT * FROM
_Hardware_Confi gurations", myConnection);
DataSet myDs = new DataSet();
myCommand.Fill( myDs, "_Hardware_Conf igurations");
dtlConfiguratio ns.DataSource =
myDs.Tables["_Hardware_Conf igurations"].DefaultView;
dtlConfiguratio ns.DataBind();

What I would like to do is for every record returned I want to use that
information to query another datasource (WMI) and then intermix it into the
DataList.

For example, the SQL query is a list of server names. For each server name
returned, I wanted to go off and query that server using WMI and retrieve
the OS and display it inline with each record. I have the WMI stuff done; I
just am not sure how to append the WMI data to the Data List or otherwise
access that WMI data within the ItemTemplate of my code-front

Does that make sense?
Nov 18 '05 #1
0 1177

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2415
by: John | last post by:
I currently have a list box that contains regions in the US (Northeast, Midwest, South, etc.). I am retrieving this data from my Region table(see below). Users have the ability to select a region as part of a search. The results were too broad so we had to make an Office table. Region Table RegionCd varchar(2) RefionDesc varchar(50)
1
2974
by: Vikram | last post by:
* i have a file foo.cpp ; it has a single function called "call_me(char*)". the function does some stuff and uses some other large libraries written in C++. * i also have bar.c ; i need to call this single function from the bar.c code. bar.c is a part of a large C code base. how do i do this ? as far as i understand i did the following: 1) extern "C" {void call_me(char*);} for the header foo.h and then included foo.h in bar.c.
2
7352
by: Kenneth Fosse | last post by:
Hi. I'm currently working on a project which involves the creation of a web page which reports selected data to customers from two back-end systems. I use ASP script language on IIS, the server is MS SQL 2000. Now I'm struggling with combining two tables from the different databases. I'm sure it's simple enough, but I'm a little short on the SQL expertise. I've got two databases, db1 and db2, and then two tables, db1.t1 and
1
323
by: Jon Brunson | last post by:
I'm writing a program that allows users to import their data into our system. The data can come from any datasource installed on the users PC, eg Access, Excel, SQL, Text Files, etc.. Is there a way to get a list of all the installed data sources? I'd like to be able to provide a list like the one used in DTS (Sql2000). Is this possible?
0
1231
by: Will Honea | last post by:
I've been handed a mess of related data in the form of multiple spead sheets. Each set of data contains part or parts of the what is needed in the final database but there is no common usable column that is usable for selecting data from all sources and no two sets contain all the rows of any other. By that, I mean that one list will have member names as (last, first, middle) while another omits the middle name and a third contains only...
13
5253
by: Leszek Taratuta | last post by:
Hello, I have several drop-down lists on my ASP.NET page. I need to keep data sources of these lists in Session State. What would be the most effective method to serialize this kind of data structures? Thanks for any hints, Leszek Taratuta
2
1258
by: Gshell | last post by:
When I get to the "Choose your data connection" screen and click the down arrow by the combo box, it takes several minutes (4 or more) to present my list of two pre-existing sources. (Both of which are on line.) This only occurs the first time after I open VB.NET. As long as VB.NET remains open subsequent clicks are almost instantanious. Any idea why it takes so long? Gary
3
2397
by: zdrakec | last post by:
Hello all: I want to present my user with a list of all system data source names (System DSN) that are defined on his machine that are of type MS Access (.mdb). However, I am having some trouble figuring out how, programatically, to get access to the ODBC data sources defined on the user machine. Can someone point me in the right direction? Thanks much,
7
2345
by: MarkusJNZ | last post by:
Hi, we have some datafeeds which pull info from external sources. Unfortunately, we have to use screen scraping as there are no XML feeds. The data feeds are located in a variety of different applications located on different servers. I have to design a new architecture, I have a fair idea of how I would do it but if anyone has any pointers to a good existing architecure design or *things not to do*, please post. TIA Markus
0
8719
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9202
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9048
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7981
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6648
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5970
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4478
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4739
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3177
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.