Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: 5 Mar 2006 07:51:31 -0800,    group: microsoft.public.dotnet.datatools        back       


VB.net Ado.net Trying to display data from two different database types   
VB.net Ado.net Trying to display data from two different database
types:

I am new to VB.net.  I am trying to pull data from a SQL Server
database and also a Microsoft Access database and display this
information in a datagrid like control.

I can pull from either database separately, but do not see how to
combine them.

I want to display the data like the following:  Note this is readonly
data.  I do not need to edit this data.

Cust#        Name     Cases     Followup
--------        ---------     ---------     -------------
1234         Joe's         10           Yes
2222         Tony's         0           No

The 1st 2 columns are pulling from SQL Server just fine.  I would like
to pull the 2nd two columnds from Microsoft Access.  I am using Jet 4.0
and Oledb to connect here.

Can someone describe how to accomplish the above.  All the book
examples I see are showing how to pull data from only one database type
at a time.

Thank you for your time and help.
date: 5 Mar 2006 07:51:31 -0800   author:   unknown

Re: VB.net Ado.net Trying to display data from two different database types   
It appears to me that you would need 2 separate Datasets to do what you're
looking for. One populates your information from Access, the other from
SQl, then you would call the DataSet.Merge method from either of those
datasets to bring them together into one. After that you should be able to
display your information.
date: Wed, 22 Mar 2006 18:51:43 -0500   author:   Glenn M. Teachey II

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us