in

System.Data.SQLite

An open source ADO.NET provider for the SQLite database engine

relative path to database file in connectionstring

Last post 06-27-2008 9:00 PM by aros. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 10-03-2007 10:44 PM

    • Wiaz
    • Top 10 Contributor
    • Joined on 01-11-2007
    • Poland
    • Posts 47

    relative path to database file in connectionstring

    Is there any possibility to have relative path to database file in connectionstring that it would work in designer ? Cause if i make connectionstring to "DataSource=|DataDirectory|database.db3" then cannot use that file in designer, i must use full path to db file to use wizards during designing app. When i'm deploying or copy compiled app to the destination place i must edit connectionstring before compiling to have proper working application. Is there any solution to work with database file during design and compiled app without editing connectionstring?
    Wiaz
  • 10-04-2007 9:22 AM In reply to

    Re: relative path to database file in connectionstring

    Not at the moment there isn't.  There are a few things in VS2005 dealing with databases and designers that are hard-coded, and I think this is one of them.  If I can figure out a workaround, I'll fix it.

    Robert

     

  • 06-27-2008 9:00 PM In reply to

    • aros
    • Top 500 Contributor
    • Joined on 06-27-2008
    • Posts 4

    Re: relative path to database file in connectionstring

    I was wondering the same thing, glad I found this post.

Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems