IF you are using SQL Server Express, which is the server . I would always choose the "real" approach to the database: attach your database to the server, access it by its database name, deploy SQL scripts to update it.
The fact that "attach the database from the path to the file" always seemed to me to be half-baked and rather dirty kludge.
- SQL Server Compact Edition, , in-process database, - , , VARCHAR(MAX) XML, - . , . , /