Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection strings
Message
De
23/05/2008 18:17:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Connection strings
Divers
Thread ID:
01319300
Message ID:
01319300
Vues:
55
The Following connection string setting works.
<connectionStrings>
  <add name="VFPLibrary" connectionString="Provider=VFPOLEDB.1;Data Source = '&quot;c:\inetpub\wwwroot\aspxtest\app_data\library.dbc&quot;'" providerName="System.Data.OleDb"/>
</connectionStrings>
but this one does not.
<connectionStrings>
  <add name="VFPLibrary" connectionString="Provider=VFPOLEDB.1;Data Source='&quot;|DataDirectory|library.dbc&quot;'" providerName="System.Data.OleDb"/>
</connectionStrings>
The latter is supposed to provide for relative pathing to the data but produces an error that says the file or path is invalid. Can someone show me the correct syntax for a relative path in the connection string?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform