Reputation: 11330
I have a connection string that includes the absolute path to my database.
Here's my connection string:
// removed
I have 2 questions:
Thanks in advance.
Upvotes: 0
Views: 423
Reputation: 31198
You should be able to use the |DataDirectory|
substitution string:
AttachDbFilename=|DataDirectory|MyDb.mdf
Upvotes: 1