Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection strings
Message
From
23/05/2008 18:17:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Connection strings
Miscellaneous
Thread ID:
01319300
Message ID:
01319300
Views:
54
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
Next
Reply
Map
View

Click here to load this message in the networking platform