Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More than one datasource
Message
De
04/01/2005 02:39:09
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
More than one datasource
Divers
Thread ID:
00974009
Message ID:
00974009
Vues:
58
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform