Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More than one datasource
Message
From
04/01/2005 02:39:09
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
More than one datasource
Miscellaneous
Thread ID:
00974009
Message ID:
00974009
Views:
59
Using OleDbDataAdapter, if I have more than one datasource, how would I go to define my line? Basically, I have an inner join, thus I have two tables which are used in the SQL.

Presently, I am accessing a VFP table:
    ' SQL adapter into a DataSet
    ' expC1 SQL command
    ' expC2 Path of the table
    Public Shared Function VFPSQLAdapterDataSet(ByVal tcSQL As String, ByVal tcTable As String) As DataSet
        Dim loData As DataSet

        loData = New DataSet
        Dim loDT As New OleDbDataAdapter(tcSQL, _
        "Provider=VFPOLEDB.1;Data Source=" + tcTable + ";Password='';Collating Sequence=MACHINE")

        loDT.Fill(loData, "Temp")

        Return loData
    End Function
Do we need to separate Data Source with a comma for each table we need to use?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform