I'm using a SQL Server CE .sdf
database file and I configure this database in the app.config
using this <connectionStrings>
tag:
<connectionStrings>
<add name="ReviewsDBConnection"
connectionString="data source="E:\GoogleDrive\bin\Debug\Data\ReviewsDB.sdf";password=123"
providerName="System.Data.SqlServerCe.4.0" />
</connectionStrings>
But whenever I move my project (the whole solution) to another PC, I get an error which says the ReviewsDB.sdf
file path is not correct.
What should I write for data source that won't need to be changed when I move the solution to another PC? I'm using Telerik Open Access to get access to database.